[nautilus/gnome-3-6] toolbar: set action tooltip on the toolbar button



commit 4ef1f9f77773623123855a12b898019748d45ffd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Oct 26 16:42:41 2012 -0400

    toolbar: set action tooltip on the toolbar button
    
    Since we don't use a GtkToolButton directly, we need to propagate the
    action tooltip manually to the GtkButton.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686903

 src/nautilus-toolbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index d1f63cf..9f033ac 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -128,6 +128,7 @@ toolbar_create_toolbutton (NautilusToolbar *self,
 		action = gtk_action_group_get_action (action_group, name);
 		gtk_activatable_set_related_action (GTK_ACTIVATABLE (button), action);
 		gtk_button_set_label (GTK_BUTTON (button), NULL);
+		gtk_widget_set_tooltip_text (button, gtk_action_get_tooltip (action));
 	}
 
 	return button;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]