Fix tooltips.
2006-05-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c (update_node): Fix tooltips.
This commit is contained in:
committed by
Matthias Clasen
parent
8a89668a0b
commit
8ade92495d
@ -1,5 +1,7 @@
|
|||||||
2006-05-08 Matthias Clasen <mclasen@redhat.com>
|
2006-05-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkuimanager.c (update_node): Fix tooltips.
|
||||||
|
|
||||||
* configure.in: Require Pango 1.13.0
|
* configure.in: Require Pango 1.13.0
|
||||||
|
|
||||||
* gtk/gtknotebook.c:
|
* gtk/gtknotebook.c:
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
2006-05-08 Matthias Clasen <mclasen@redhat.com>
|
2006-05-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkuimanager.c (update_node): Fix tooltips.
|
||||||
|
|
||||||
* configure.in: Require Pango 1.13.0
|
* configure.in: Require Pango 1.13.0
|
||||||
|
|
||||||
* gtk/gtknotebook.c:
|
* gtk/gtknotebook.c:
|
||||||
|
|||||||
@ -2467,11 +2467,16 @@ update_node (GtkUIManager *self,
|
|||||||
gtk_action_connect_proxy (action, info->proxy);
|
gtk_action_connect_proxy (action, info->proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: we must trigger the notify::tooltip handler, since
|
/* FIXME: we must re-set the tooltip, since tooltips on toolitems can't be
|
||||||
* tooltips on toolitems can't be set before the toolitem
|
* set before the toolitem is added to the toolbar.
|
||||||
* is added to the toolbar.
|
|
||||||
*/
|
*/
|
||||||
g_object_notify (G_OBJECT (action), "tooltip");
|
{
|
||||||
|
gchar *tooltip;
|
||||||
|
|
||||||
|
g_object_get (G_OBJECT (action), "tooltip", &tooltip, NULL);
|
||||||
|
g_object_set (G_OBJECT (action), "tooltip", tooltip, NULL);
|
||||||
|
g_free (tooltip);
|
||||||
|
}
|
||||||
|
|
||||||
g_signal_connect (info->proxy, "notify::visible",
|
g_signal_connect (info->proxy, "notify::visible",
|
||||||
G_CALLBACK (update_smart_separators), NULL);
|
G_CALLBACK (update_smart_separators), NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user