[Sugar-devel] [PATCH 3/4] Use iconentry.ICON_ENTRY_SECONDARY instead of gtk.ENTRY_ICON_SECONDARY by compatibility

godiard at sugarlabs.org godiard at sugarlabs.org
Tue Aug 30 10:37:08 EDT 2011


From: Gonzalo Odiard <godiard at gmail.com>

Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
---
 webtoolbar.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/webtoolbar.py b/webtoolbar.py
index e5af3ea..dfb178f 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -25,7 +25,7 @@ from xpcom.components import interfaces
 
 from sugar.graphics.toolbutton import ToolButton
 from sugar.graphics.menuitem import MenuItem
-from sugar.graphics.iconentry import IconEntry
+from sugar.graphics import iconentry
 try:
     from sugar.graphics.toolbarbox import ToolbarBox as ToolbarBase
     from sugar.activity.widgets import ActivityToolbarButton
@@ -42,7 +42,7 @@ import places
 _MAX_HISTORY_ENTRIES = 15
 
 
-class WebEntry(IconEntry):
+class WebEntry(iconentry.IconEntry):
     _COL_ADDRESS = 0
     _COL_TITLE = 1
 
@@ -260,7 +260,7 @@ class PrimaryToolbar(ToolbarBase):
         self._go_home.show()
 
         self.entry = WebEntry()
-        self.entry.set_icon_from_name(gtk.ENTRY_ICON_SECONDARY,
+        self.entry.set_icon_from_name(iconentry.ICON_ENTRY_SECONDARY,
                                       'browse-dialog-cancel')
         self.entry.connect('icon-press', self._stop_and_reload_cb)
         self.entry.connect('activate', self._entry_activate_cb)
-- 
1.7.4.4



More information about the Sugar-devel mailing list