From e3a8db10d71823511bdf62a4095500c044649c1c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 21 Mar 2009 14:03:50 +0000 Subject: ephy-topic-action: call gtk_activatable_get_related_action on the right widget. We set the action on the tool item, so fetch the action from there and not its child button. Fixes bug #571178. svn path=/trunk/; revision=8926 --- src/bookmarks/ephy-topic-action.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index 4c1fe1d4d..d0c3fbfd7 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -374,7 +374,10 @@ button_enter_cb (GtkWidget *button, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (active_button))) { EphyTopicAction *active_action; - active_action = (EphyTopicAction*)gtk_activatable_get_related_action (GTK_ACTIVATABLE (active_button)); + GtkWidget *ancestor; + + ancestor = gtk_widget_get_ancestor (active_button, GTK_TYPE_TOOL_ITEM); + active_action = (EphyTopicAction*)gtk_activatable_get_related_action (GTK_ACTIVATABLE (ancestor)); erase_popup (active_action); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (active_button), FALSE); -- cgit v1.2.3