aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-03-21 22:03:50 +0800
committerXan Lopez <xan@src.gnome.org>2009-03-21 22:03:50 +0800
commite3a8db10d71823511bdf62a4095500c044649c1c (patch)
tree3ff6d0a9304231c145b77361ed61b8afe2df7050 /src
parentcf5b17a335c100614cd4b7db35c226a3b6b4b9a2 (diff)
downloadgsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.tar
gsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.tar.gz
gsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.tar.bz2
gsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.tar.lz
gsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.tar.xz
gsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.tar.zst
gsoc2013-epiphany-e3a8db10d71823511bdf62a4095500c044649c1c.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-topic-action.c5
1 files changed, 4 insertions, 1 deletions
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);