mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 17:20:21 +00:00
Update most deprecated gtk functions
This commit is contained in:
@@ -450,7 +450,7 @@ gtkutil_button (GtkWidget *box, char *stock, char *tip, void *callback,
|
||||
G_CALLBACK (callback), userdata);
|
||||
gtk_widget_show (wid);
|
||||
if (tip)
|
||||
add_tip (wid, tip);
|
||||
gtk_widget_set_tooltip_text (wid, tip);
|
||||
|
||||
return wid;
|
||||
}
|
||||
@@ -546,15 +546,6 @@ gtkutil_clist_multiple_selection (GtkWidget * clist, int ** rows, const int max_
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
add_tip (GtkWidget * wid, char *text)
|
||||
{
|
||||
static GtkTooltips *tip = NULL;
|
||||
if (!tip)
|
||||
tip = gtk_tooltips_new ();
|
||||
gtk_tooltips_set_tip (tip, wid, text, 0);
|
||||
}
|
||||
|
||||
void
|
||||
show_and_unfocus (GtkWidget * wid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user