aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-07-11 03:23:45 +0800
committerChristian Persch <chpe@src.gnome.org>2006-07-11 03:23:45 +0800
commit22932f6b1bd176b72473df2a9e05d04448929006 (patch)
tree3a95f9bc9e414df196e2daa40fdc40bb35473834 /src
parentbff7388803ea3dad3ef1dac686a24bd2e1edb9b0 (diff)
downloadgsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.tar
gsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.tar.gz
gsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.tar.bz2
gsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.tar.lz
gsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.tar.xz
gsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.tar.zst
gsoc2013-epiphany-22932f6b1bd176b72473df2a9e05d04448929006.zip
Fix middle-click and ctrl-enter in the location entry autocompletion
2006-07-10 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-location-entry.c: (entry_key_press_cb), (entry_key_press_after_cb), (entry_activate_after_cb), (match_selected_cb), (action_activated_after_cb), (ephy_location_entry_construct_contents), (ephy_location_entry_set_completion): * src/ephy-location-action.c: (action_activated_cb): Fix middle-click and ctrl-enter in the location entry autocompletion drop-down. Bug #345934, based on a patch by johannes@sipsolutions.net.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-location-action.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index 922f14298..927c09396 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -135,12 +135,13 @@ action_activated_cb (GtkEntryCompletion *completion,
url = ephy_bookmarks_resolve_address
(action->priv->bookmarks, smart_url, content);
- g_return_if_fail (url != NULL);
+ g_free (content);
+ if (url == NULL) return;
+
+ ephy_link_open (EPHY_LINK (action), url, NULL,
+ ephy_link_flags_from_current_event ());
- ephy_link_open (EPHY_LINK (action), url, NULL, 0);
-
g_free (url);
- g_free (content);
}
}