From df42715e781e44ce2ee0e3457e99b86f73fa9443 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Thu, 31 May 2012 12:51:09 -0300
Subject: [PATCH Wikipedia] Search ToolButton, pass page and icon_name as
parameters #3658
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
The tool button had a grey background because of this.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
activity.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/activity.py b/activity.py
index 43b430a..ec72dec 100644
a
|
b
|
class WikipediaActivity(webactivity.WebActivity): |
77 | 77 | io_service.manageOfflineStatus = False |
78 | 78 | |
79 | 79 | self.searchtoolbar = SearchToolbar(self) |
80 | | search_toolbar_button = ToolbarButton() |
81 | | search_toolbar_button.set_page(self.searchtoolbar) |
82 | | search_toolbar_button.props.icon_name = 'search-wiki' |
| 80 | search_toolbar_button = ToolbarButton( |
| 81 | page=self.searchtoolbar, icon_name = 'search-wiki') |
83 | 82 | search_toolbar_button.props.label = _('Search') |
84 | 83 | self.get_toolbar_box().toolbar.insert(search_toolbar_button, 1) |
85 | 84 | search_toolbar_button.show() |