diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-12-17 20:34:31 (GMT) |
---|---|---|
committer | Martin Langhoff <martin@laptop.org> | 2010-12-20 15:42:04 (GMT) |
commit | 10bf2a861c51904d88d72c3ccd2bf42e0aeec720 (patch) | |
tree | ab8a41d11646f047edd026a36ce94f157af3b6b0 /searchtoolbar.py | |
parent | 7282172182de64b3a409e924f2acaff40238eaf1 (diff) |
Use the setting in activity.py to the port in the search toolbar
Diffstat (limited to 'searchtoolbar.py')
-rw-r--r-- | searchtoolbar.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/searchtoolbar.py b/searchtoolbar.py index 2e2e184..16c9c99 100644 --- a/searchtoolbar.py +++ b/searchtoolbar.py @@ -22,14 +22,6 @@ from sugar.graphics.toolbutton import ToolButton from sugar.graphics.toolcombobox import ToolComboBox from sugar._sugarext import AddressEntry -default_search_providers = { - 'schoolserver': { - 'order': 3, - 'name': _('Wiki'), - 'url': 'http://localhost:8000/search?q=%s', - 'icon': 'zoom-home' - }, -} class SearchToolbar(gtk.Toolbar): def __init__(self, activity): @@ -44,6 +36,15 @@ class SearchToolbar(gtk.Toolbar): self.insert(self._providercombo, -1) self._providercombo.show() + default_search_providers = { + 'schoolserver': { + 'order': 3, + 'name': _('Wiki'), + 'url': 'http://localhost:'+ self._activity.HTTP_PORT + '/search?q=%s', + 'icon': 'zoom-home' + }, + } + self.set_providers(default_search_providers) self._entry = gtk.Entry() |