diff options
author | Christian Persch <chpe@src.gnome.org> | 2009-03-21 22:05:57 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2009-03-21 22:05:57 +0800 |
commit | b289c07d5ef726a3ec276e1ee23340fbce90e1d7 (patch) | |
tree | c220d2f598d29cd6d20c177b0095cee2295df880 | |
parent | 26fd169b4c6aa9ae7331ffeda6ca270cabfb24f4 (diff) | |
download | gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.tar gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.tar.gz gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.tar.bz2 gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.tar.lz gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.tar.xz gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.tar.zst gsoc2013-epiphany-b289c07d5ef726a3ec276e1ee23340fbce90e1d7.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=/branches/gnome-2-26/; revision=8927
-rw-r--r-- | src/bookmarks/ephy-topic-action.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index ecab22188..eba042cd4 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -375,7 +375,10 @@ button_enter_cb (GtkWidget *button, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (active_button))) { EphyTopicAction *active_action; - active_action = gtk_widget_get_action (GTK_WIDGET (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); |