From f9fc60cc505114328f9fbf5b4dd480f4087ff51c Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sun, 7 Oct 2007 14:19:01 +0000 Subject: Makes the Go button behaviour consistent with the "Enter" behaviour. Both * window-commands.c: Makes the Go button behaviour consistent with the "Enter" behaviour. Both actions search for keywords or load the url. Fixes #484178. svn path=/trunk/; revision=7521 --- src/window-commands.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/window-commands.c b/src/window-commands.c index f72b10143..b4a801e2b 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -946,9 +946,17 @@ window_cmd_load_location (GtkAction *action, if (location) { - ephy_link_open (EPHY_LINK (window), location, + EphyBookmarks *bookmarks; + char *address; + + bookmarks = ephy_shell_get_bookmarks (ephy_shell_get_default ()); + + address = ephy_bookmarks_resolve_address (bookmarks, location, NULL); + g_return_if_fail (address != NULL); + + ephy_link_open (EPHY_LINK (window), address, ephy_window_get_active_tab (window), - ephy_link_flags_from_current_event ()); + ephy_link_flags_from_current_event () | EPHY_LINK_ALLOW_FIXUP); } } -- cgit v1.2.3