Update most deprecated gtk functions

This commit is contained in:
TingPing
2014-01-18 04:08:32 -05:00
parent fa1eb92a7b
commit ce09cb4a91
16 changed files with 93 additions and 100 deletions

View File

@@ -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)
{