aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-link-action.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-01 01:29:31 +0800
committerXan Lopez <xan@igalia.com>2012-01-01 01:29:31 +0800
commitabf18eb5c2797c2e44eaa3247fa9af55c3feee93 (patch)
tree0be9f9e21beef44d69eeea8d3cbad5c8af100bc1 /src/ephy-link-action.c
parent1f86dd5ea12eda495e6a7631ec0a01af0d50a8d7 (diff)
downloadgsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.tar
gsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.tar.gz
gsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.tar.bz2
gsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.tar.lz
gsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.tar.xz
gsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.tar.zst
gsoc2013-epiphany-abf18eb5c2797c2e44eaa3247fa9af55c3feee93.zip
ephy-link-action: we don't have menu tool buttons that need to react to middle click anymore
Diffstat (limited to 'src/ephy-link-action.c')
-rw-r--r--src/ephy-link-action.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/ephy-link-action.c b/src/ephy-link-action.c
index b4a77a7e5..160b253d3 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,