Respect constructor properties

This commit is contained in:
Marco Pesenti Gritti 2006-08-31 22:41:41 +02:00
parent 0ae39c93e7
commit 126ed5840f

View File

@ -158,13 +158,13 @@ class IconItem(goocanvas.ItemSimple, goocanvas.Item):
} }
def __init__(self, **kwargs): def __init__(self, **kwargs):
goocanvas.ItemSimple.__init__(self, **kwargs)
self.x = 0.0 self.x = 0.0
self.y = 0.0 self.y = 0.0
self.width = 0.0 self.width = 0.0
self.height = 0.0 self.height = 0.0
goocanvas.ItemSimple.__init__(self, **kwargs)
def do_set_property(self, pspec, value): def do_set_property(self, pspec, value):
if pspec.name == 'icon-name': if pspec.name == 'icon-name':
self.icon_name = value self.icon_name = value