Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/toolbutton.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-25 16:26:59 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-25 16:26:59 (GMT)
commit1938fb13f048b62bbbef1d1d4045bf655b79c91f (patch)
treec624bbf5ecb3b1f53466fd8df24e1ec91a37f9d0 /sugar/graphics/toolbutton.py
parent1cb214bc967f16f4fd2f1bdc5dec65b444e01ef6 (diff)
Rework the Icon implementation by splitting out
the icon rendering part. The plan is to share this code with CanvasIcon once it has all the necessary features. Also cleanup the API by just reusing gtk.Image icon_name and file properties.
Diffstat (limited to 'sugar/graphics/toolbutton.py')
-rw-r--r--sugar/graphics/toolbutton.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/toolbutton.py b/sugar/graphics/toolbutton.py
index 2b90fd4..4db7d90 100644
--- a/sugar/graphics/toolbutton.py
+++ b/sugar/graphics/toolbutton.py
@@ -33,7 +33,7 @@ class ToolButton(gtk.ToolButton):
self.connect('clicked', self._button_clicked_cb)
def set_icon(self, icon_name):
- icon = Icon(icon_name)
+ icon = Icon(icon_name=icon_name)
self.set_icon_widget(icon)
icon.show()