From 126ed5840f90645f8638155781ff03bf65b6f1ad Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 31 Aug 2006 22:41:41 +0200 Subject: [PATCH] Respect constructor properties --- sugar/canvas/IconItem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/canvas/IconItem.py b/sugar/canvas/IconItem.py index 9934b50c..d8752491 100644 --- a/sugar/canvas/IconItem.py +++ b/sugar/canvas/IconItem.py @@ -158,13 +158,13 @@ class IconItem(goocanvas.ItemSimple, goocanvas.Item): } def __init__(self, **kwargs): - goocanvas.ItemSimple.__init__(self, **kwargs) - self.x = 0.0 self.y = 0.0 self.width = 0.0 self.height = 0.0 + goocanvas.ItemSimple.__init__(self, **kwargs) + def do_set_property(self, pspec, value): if pspec.name == 'icon-name': self.icon_name = value