Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-08-30 14:45:08 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-08-30 15:28:08 (GMT)
commit9669bbb47b49a24deabbdc72d6fbab014a1d946f (patch)
treeb3d5e628716e8520fee5cb1717605c0314138216
parent165dca7a327c8da31448b9a05abc1008aaa4d512 (diff)
Use iconentry.ICON_ENTRY_SECONDARY instead of gtk.ENTRY_ICON_SECONDARY by compatibility
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Tested-By: Simon Schampijer <simon@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--webtoolbar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index e5af3ea..b84332d 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)
@@ -397,11 +397,11 @@ class PrimaryToolbar(ToolbarBase):
self.entry.props.title = title
def _show_stop_icon(self):
- self.entry.set_icon_from_name(gtk.ENTRY_ICON_SECONDARY,
+ self.entry.set_icon_from_name(iconentry.ICON_ENTRY_SECONDARY,
'browse-dialog-cancel')
def _show_reload_icon(self):
- self.entry.set_icon_from_name(gtk.ENTRY_ICON_SECONDARY,
+ self.entry.set_icon_from_name(iconentry.ICON_ENTRY_SECONDARY,
'browse-view-refresh')
def _update_navigation_buttons(self):