Remove work-around for the old tooltips code, and just set the action

2007-07-10  Christian Persch  <chpe@gnome.org>

	* gtk/gtkaction.c: (gtk_action_sync_tooltip),
	(gtk_action_set_tooltip):
	* gtk/gtkuimanager.c: (update_node): Remove work-around for the old
	tooltips code, and just set the action tooltip immediately on the
	proxy widget. Bug #455482.

svn path=/trunk/; revision=18437
This commit is contained in:
Christian Persch 2007-07-10 18:00:43 +00:00 committed by Christian Persch
parent 75d9d02b72
commit 03970ddcaf
3 changed files with 13 additions and 19 deletions

View File

@ -1,3 +1,11 @@
2007-07-10 Christian Persch <chpe@gnome.org>
* gtk/gtkaction.c: (gtk_action_sync_tooltip),
(gtk_action_set_tooltip):
* gtk/gtkuimanager.c: (update_node): Remove work-around for the old
tooltips code, and just set the action tooltip immediately on the
proxy widget. Bug #455482.
2007-07-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_widget_under_pointer),

View File

@ -1451,11 +1451,6 @@ static void
gtk_action_sync_tooltip (GtkAction *action,
GtkWidget *proxy)
{
GtkWidget *parent;
parent = gtk_widget_get_parent (proxy);
if (GTK_IS_TOOL_ITEM (proxy) && GTK_IS_TOOLBAR (parent))
gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (proxy),
action->private_data->tooltip);
}
@ -1476,6 +1471,7 @@ gtk_action_set_tooltip (GtkAction *action,
{
proxy = (GtkWidget *)p->data;
if (GTK_IS_TOOL_ITEM (proxy))
gtk_action_sync_tooltip (action, proxy);
}

View File

@ -2613,16 +2613,6 @@ update_node (GtkUIManager *self,
if (info->proxy)
{
/* FIXME: we must re-set the tooltip, since tooltips on
* toolitems can't be set before the toolitem is added
* to the toolbar.
*/
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_CALLBACK (update_smart_separators), NULL);
}