diff options
author | TingPing <tingping@tingping.se> | 2014-01-18 04:08:32 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-01-18 14:47:17 -0500 |
commit | ce09cb4a91e0b0a567e87d1f5e7301924b16c146 (patch) | |
tree | 6e284ed7768758ad59173e3c580d28741dbff47c /src/fe-gtk/gtkutil.c | |
parent | fa1eb92a7bc17e9e3ae3809851588ea5842df292 (diff) |
Update most deprecated gtk functions
Diffstat (limited to 'src/fe-gtk/gtkutil.c')
-rw-r--r-- | src/fe-gtk/gtkutil.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/fe-gtk/gtkutil.c b/src/fe-gtk/gtkutil.c index af6d3803..79b71233 100644 --- a/src/fe-gtk/gtkutil.c +++ b/src/fe-gtk/gtkutil.c @@ -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; } @@ -547,15 +547,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) { gtk_widget_set_can_focus (wid, FALSE); |