summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-08-01 16:24:30 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-08-01 16:24:30 +0000
commitb9abf2e40ef3daa6c094e40d44b9b2ef7ef11bbb (patch)
tree7c8b2532091eb026b9684735d18eb04a7e225357 /gtk
parent6bd98ba0f9a0be379f49720109843911ba0cdfa7 (diff)
downloadgdk-pixbuf-b9abf2e40ef3daa6c094e40d44b9b2ef7ef11bbb.tar.gz
Update tooltips when reconnecting toolitems. (#312173, Alex Graveley)
2005-08-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c (update_node): Update tooltips when reconnecting toolitems. (#312173, Alex Graveley)
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkuimanager.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c
index 72a2bde4c..7823c93d7 100644
--- a/gtk/gtkuimanager.c
+++ b/gtk/gtkuimanager.c
@@ -2520,12 +2520,6 @@ update_node (GtkUIManager *self,
gtk_toolbar_insert (GTK_TOOLBAR (toolbar),
GTK_TOOL_ITEM (info->proxy), pos);
-
- /* FIXME: we must trigger the notify::tooltip handler, since
- * tooltips on toolitems can't be set before the toolitem
- * is added to the toolbar.
- */
- g_object_notify (G_OBJECT (action), "tooltip");
}
}
else
@@ -2535,6 +2529,13 @@ update_node (GtkUIManager *self,
NULL);
gtk_action_connect_proxy (action, info->proxy);
}
+
+ /* FIXME: we must trigger the notify::tooltip handler, since
+ * tooltips on toolitems can't be set before the toolitem
+ * is added to the toolbar.
+ */
+ g_object_notify (G_OBJECT (action), "tooltip");
+
g_signal_connect (info->proxy, "notify::visible",
G_CALLBACK (update_smart_separators), NULL);
break;