GNOME #571794

Index: epiphany-2.26.3/src/bookmarks/ephy-bookmark-action.c
===================================================================
--- epiphany-2.26.3.orig/src/bookmarks/ephy-bookmark-action.c	2009-05-28 21:26:22.000000000 +0200
+++ epiphany-2.26.3/src/bookmarks/ephy-bookmark-action.c	2009-08-10 15:44:49.860542930 +0200
@@ -398,6 +398,18 @@ activate_cb (GtkWidget *widget,
 		gdk_event_free (event);
 	}
 
+	/* If we are clicking on the button, activate the entry instead */
+	if (!GTK_IS_EDITABLE (widget))
+	{
+		GtkWidget *otherwidget = gtk_widget_get_parent (widget);
+		if (otherwidget)
+			otherwidget = gtk_widget_get_parent (otherwidget);
+		if (otherwidget)
+			otherwidget = GTK_WIDGET (g_object_get_data (G_OBJECT (otherwidget), "entry"));
+		if (otherwidget)
+			widget = otherwidget;
+	}
+
 	ephy_bookmark_action_activate
 	  (action, widget, (control || ephy_gui_is_middle_click ()) ? EPHY_LINK_NEW_TAB : 0);
 }
