[nautilus] toolbar: set action tooltip on the toolbar button
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] toolbar: set action tooltip on the toolbar button
- Date: Fri, 26 Oct 2012 20:44:46 +0000 (UTC)
commit 1af5f7c3b90539506d56295dfa09f98021bb60b0
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 5116ccc..94be1c0 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]