diff options
author | Marco 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) |
commit | 1938fb13f048b62bbbef1d1d4045bf655b79c91f (patch) | |
tree | c624bbf5ecb3b1f53466fd8df24e1ec91a37f9d0 /sugar/graphics/toggletoolbutton.py | |
parent | 1cb214bc967f16f4fd2f1bdc5dec65b444e01ef6 (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/toggletoolbutton.py')
-rw-r--r-- | sugar/graphics/toggletoolbutton.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/toggletoolbutton.py b/sugar/graphics/toggletoolbutton.py index a83bebc..4fbfa66 100644 --- a/sugar/graphics/toggletoolbutton.py +++ b/sugar/graphics/toggletoolbutton.py @@ -29,7 +29,7 @@ class ToggleToolButton(gtk.ToggleToolButton): self.set_named_icon(named_icon) def set_named_icon(self, named_icon): - icon = Icon(named_icon) + icon = Icon(icon_name=named_icon) self.set_icon_widget(icon) icon.show() |