[epiphany] ephy-link-action: we don't have menu tool buttons that need to react to middle click anymore



commit abf18eb5c2797c2e44eaa3247fa9af55c3feee93
Author: Xan Lopez <xan igalia com>
Date:   Sat Dec 31 18:29:31 2011 +0100

    ephy-link-action: we don't have menu tool buttons that need to react to middle click anymore

 src/ephy-link-action.c |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/src/ephy-link-action.c b/src/ephy-link-action.c
index b4a77a7..160b253 100644
--- a/src/ephy-link-action.c
+++ b/src/ephy-link-action.c
@@ -78,20 +78,6 @@ get_event_widget (GtkWidget *proxy)
 		/* Menu items already forward middle clicks */
 		widget = NULL;
 	}
-	else if (GTK_IS_MENU_TOOL_BUTTON (proxy))
-	{
-		/*
-		 * The menu tool button's button is the first child
-		 * of the child hbox.
-		 */
-		GtkContainer *container;
-		GList *children;
-	  
-		container = GTK_CONTAINER (gtk_bin_get_child (GTK_BIN (proxy)));
-		children = gtk_container_get_children (container);
-		widget = GTK_WIDGET (children->data);
-		g_list_free (children);
-	}
 	else if (GTK_IS_TOOL_BUTTON (proxy))
 	{
 		/* The tool button's button is the direct child */
@@ -117,7 +103,7 @@ ephy_link_action_connect_proxy (GtkAction *action, GtkWidget *proxy)
 
 	LOG ("Connect link action proxy");
 
-	widget = get_event_widget(proxy);
+	widget = get_event_widget (proxy);
 	if (widget)
 	{
 		g_signal_connect (widget, "button-press-event",
@@ -138,7 +124,7 @@ ephy_link_action_disconnect_proxy (GtkAction *action, GtkWidget *proxy)
 
 	LOG ("Disconnect link action proxy");
 
-	widget = get_event_widget(proxy);
+	widget = get_event_widget (proxy);
 	if (widget)
 	{
 		g_signal_handlers_disconnect_by_func (widget,



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