From 1938fb13f048b62bbbef1d1d4045bf655b79c91f Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 25 Aug 2007 16:26:59 +0000 Subject: 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. --- (limited to 'sugar/graphics/toggletoolbutton.py') 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() -- cgit v0.9.1