epiphany r8927 - branches/gnome-2-26/src/bookmarks



Author: chpe
Date: Sat Mar 21 14:05:57 2009
New Revision: 8927
URL: http://svn.gnome.org/viewvc/epiphany?rev=8927&view=rev

Log:
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.

Modified:
   branches/gnome-2-26/src/bookmarks/ephy-topic-action.c

Modified: branches/gnome-2-26/src/bookmarks/ephy-topic-action.c
==============================================================================
--- branches/gnome-2-26/src/bookmarks/ephy-topic-action.c	(original)
+++ branches/gnome-2-26/src/bookmarks/ephy-topic-action.c	Sat Mar 21 14:05:57 2009
@@ -375,7 +375,10 @@
 	    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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]