diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-18 15:17:38 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-18 15:17:38 +0000 |
commit | 63763bb00502e3c235e478ec50e097904c774696 (patch) | |
tree | abaacd41d305f0da54b2b4b1de7f84c31726c20c /src | |
parent | 115d8874ed59fc0c8c754b0864e137d5f142b2a2 (diff) |
issue 113
Diffstat (limited to 'src')
-rw-r--r-- | src/trg-toolbar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trg-toolbar.c b/src/trg-toolbar.c index 642f8eb..e3132cd 100644 --- a/src/trg-toolbar.c +++ b/src/trg-toolbar.c @@ -165,12 +165,13 @@ static void trg_toolbar_class_init(TrgToolbarClass * klass) static GtkWidget *trg_toolbar_item_new(TrgToolbar * toolbar, - gchar * text G_GNUC_UNUSED, + gchar * text, int *index, gchar * icon, gboolean sensitive) { GtkToolItem *w = gtk_tool_button_new_from_stock(icon); gtk_widget_set_sensitive(GTK_WIDGET(w), sensitive); + gtk_tool_item_set_tooltip_text (w,text); gtk_toolbar_insert(GTK_TOOLBAR(toolbar), w, (*index)++); return GTK_WIDGET(w); } @@ -260,6 +261,8 @@ static void trg_toolbar_init(TrgToolbar * self) priv->tb_remote_prefs = trg_toolbar_item_new(self, _("Remote Preferences"), &position, GTK_STOCK_NETWORK, FALSE); + + gtk_toolbar_set_tooltips(GTK_TOOLBAR(self), TRUE); } TrgToolbar *trg_toolbar_new(void) |