epiphany r8926 - trunk/src/bookmarks



Author: xan
Date: Sat Mar 21 14:03:50 2009
New Revision: 8926
URL: http://svn.gnome.org/viewvc/epiphany?rev=8926&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:
   trunk/src/bookmarks/ephy-topic-action.c

Modified: trunk/src/bookmarks/ephy-topic-action.c
==============================================================================
--- trunk/src/bookmarks/ephy-topic-action.c	(original)
+++ trunk/src/bookmarks/ephy-topic-action.c	Sat Mar 21 14:03:50 2009
@@ -374,7 +374,10 @@
 	    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);



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