Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2013-01-21 18:49:18 (GMT)
committer Manuel QuiƱones <manuq@laptop.org>2013-01-23 16:12:35 (GMT)
commitc00ca0bdb7617ee004ff1b18219252ff2180feaf (patch)
treece740048e469cd4770fcf0b9c2c481682f44b4a0 /webtoolbar.py
parent58f06e2752e3a661a4beb611c0b6494429ab1017 (diff)
Hide autosuggestion when adding a new tab SL #4355
If you start typing an url and the autosuggestion list appears and then you click on plus sign or press Ctrl-T the autosuggestion list is hid. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'webtoolbar.py')
-rw-r--r--webtoolbar.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index 63f22aa..6b95a8d 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -344,6 +344,7 @@ class PrimaryToolbar(ToolbarBase):
self._connect_to_browser(tabbed_view.props.current_browser)
tabbed_view.connect_after('switch-page', self.__switch_page_cb)
+ tabbed_view.connect_after('page-added', self.__page_added_cb)
def __key_press_event_cb(self, entry, event):
self._tabbed_view.current_browser.loading_uri = entry.props.text
@@ -352,6 +353,9 @@ class PrimaryToolbar(ToolbarBase):
if tabbed_view.get_n_pages():
self._connect_to_browser(tabbed_view.props.current_browser)
+ def __page_added_cb(self, notebook, child, pagenum):
+ self.entry._search_popdown()
+
def _connect_to_browser(self, browser):
if self._browser is not None:
self._browser.disconnect(self._uri_changed_hid)