From b814f74b27a12ede9c063208b20f9f30ddbb9438 Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Thu, 05 Jan 2012 12:29:21 +0000 Subject: Normalize and autosearch url input. This borrows code from Epiphany. Our normalize_or_autosearch_url is like the method of the same name in ephy-web-view.c . And the function has_web_scheme is like ephy_embed_utils_address_has_web_scheme in ephy-embed-utils.c Acked-by: Simon Schampijer Signed-off-by: Manuel QuiƱones --- (limited to 'webtoolbar.py') diff --git a/webtoolbar.py b/webtoolbar.py index 47ece72..c0e1396 100644 --- a/webtoolbar.py +++ b/webtoolbar.py @@ -384,7 +384,9 @@ class PrimaryToolbar(ToolbarBase): def _entry_activate_cb(self, entry): browser = self._tabbed_view.props.current_browser - browser.load_uri(entry.props.text) + url = entry.props.text + effective_url = self._tabbed_view.normalize_or_autosearch_url(url) + browser.load_uri(effective_url) browser.grab_focus() def _go_home_cb(self, button): -- cgit v0.9.1