Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-21 12:04:01 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-21 12:04:01 (GMT)
commit01b98aab5488d3027299a182b1c300087ec08c94 (patch)
tree08d0c301321e9c8352e740605d9ed82e8834c9f6
parente769c283d747914346624c50daef7118715a0f7a (diff)
Renamed Button to IconButton.
-rwxr-xr-xlinksview.py2
-rwxr-xr-xwebtoolbar.py10
2 files changed, 5 insertions, 7 deletions
diff --git a/linksview.py b/linksview.py
index 5e6388c..2f83e6e 100755
--- a/linksview.py
+++ b/linksview.py
@@ -23,7 +23,6 @@ from sugar.graphics.menu import Menu
from sugar.graphics.menushell import MenuShell
from sugar.graphics.menuicon import MenuIcon
from sugar.graphics.iconcolor import IconColor
-from sugar.graphics import style
class LinkIcon(MenuIcon):
def __init__(self, menu_shell, link):
@@ -57,7 +56,6 @@ class LinksView(Toolbar):
def _add_link(self, link):
icon = LinkIcon(self._menu_shell, link)
icon.connect('activated', self._link_activated_cb, link)
- style.apply_stylesheet(icon, 'links.Icon')
self.append(icon)
self._icons[link] = icon
diff --git a/webtoolbar.py b/webtoolbar.py
index a80d4e1..2a1858e 100755
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -20,23 +20,23 @@ import gtk
from addressentry import AddressEntry
from sugar.graphics.toolbar import Toolbar
-from sugar.graphics.button import Button
+from sugar.graphics.iconbutton import IconButton
class WebToolbar(Toolbar):
def __init__(self, embed):
Toolbar.__init__(self)
- self._back = Button('theme:stock-back')
+ self._back = IconButton('theme:stock-back')
self._back.props.active = False
self._back.connect("activated", self._go_back_cb)
self.append(self._back)
- self._forward = Button('theme:stock-forward')
+ self._forward = IconButton('theme:stock-forward')
self._forward.props.active = False
self._forward.connect("activated", self._go_forward_cb)
self.append(self._forward)
- self._stop_and_reload = Button('theme:stock-close')
+ self._stop_and_reload = IconButton('theme:stock-close')
self._stop_and_reload.connect("activated", self._stop_and_reload_cb)
self.append(self._stop_and_reload)
@@ -44,7 +44,7 @@ class WebToolbar(Toolbar):
self._entry.connect("activated", self._entry_activate_cb)
self.append(self._entry, hippo.PACK_EXPAND)
- self._post = Button('theme:stock-add')
+ self._post = IconButton('theme:stock-add')
self._post.props.active = False
self._post.connect("activated", self._post_cb)
self.append(self._post)