Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/radiotoolbutton.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/radiotoolbutton.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/radiotoolbutton.py')
-rw-r--r--sugar/graphics/radiotoolbutton.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/radiotoolbutton.py b/sugar/graphics/radiotoolbutton.py
index cf0cc64..a8269dd 100644
--- a/sugar/graphics/radiotoolbutton.py
+++ b/sugar/graphics/radiotoolbutton.py
@@ -31,7 +31,7 @@ class RadioToolButton(gtk.RadioToolButton):
self.set_named_icon(named_icon)
def set_named_icon(self, named_icon):
- icon = Icon(named_icon,
+ icon = Icon(icon_name=named_icon,
xo_color=self._xo_color,
icon_size=gtk.ICON_SIZE_LARGE_TOOLBAR)
self.set_icon_widget(icon)