[Pkg-sugar-commit] [sugar-browse-activity] 14/19: Hide autosuggestion when adding a new tab SL #4355

Jonas Smedegaard dr at jones.dk
Mon Apr 20 09:47:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v149.1
in repository sugar-browse-activity.

commit 4fb1ed409f2e129c7ce7b09288777bbda72e2123
Author: Manuel Kaufmann <humitos at gmail.com>
Date:   Mon Jan 21 15:49:18 2013 -0300

    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 at gmail.com>
    Acked-by: Manuel Quiñones <manuq at laptop.org>
---
 webtoolbar.py | 4 ++++
 1 file changed, 4 insertions(+)

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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-browse-activity.git



More information about the pkg-sugar-commit mailing list