diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2013-01-21 18:49:18 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2013-02-19 01:43:12 (GMT) |
commit | 4fb1ed409f2e129c7ce7b09288777bbda72e2123 (patch) | |
tree | 4bd170205e7dc1e95ae328566fa1859e2e96a91c | |
parent | 53c2e7e7283852f7c72d8d4d5db001c7e14f26e9 (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>
-rw-r--r-- | webtoolbar.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webtoolbar.py b/webtoolbar.py index 21811cc..dd8fc81 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) |