From 8c288d7deeda09cf9d98b9ce57186bed5c808f3e Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sun, 26 Aug 2007 16:49:55 -0400 Subject: [PATCH] Adapt Button() to new icon API --- sugar/graphics/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/button.py b/sugar/graphics/button.py index fc869f99..647f36df 100644 --- a/sugar/graphics/button.py +++ b/sugar/graphics/button.py @@ -25,7 +25,7 @@ class CanvasButton(hippo.CanvasButton): hippo.CanvasButton.__init__(self, text=label) if icon_name: - icon = Icon(icon_name,icon_size=gtk.ICON_SIZE_BUTTON) + icon = Icon(icon_name=icon_name, icon_size=gtk.ICON_SIZE_BUTTON) self.props.widget.set_image(icon) icon.show()