From 5ca728b1d31139f059a3b3c94610db65d17e9c57 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 19 Jan 2007 14:47:33 +0000 Subject: Fix API for hippo-canvas 0.2 --- (limited to 'shell/view/home/HomeBox.py') diff --git a/shell/view/home/HomeBox.py b/shell/view/home/HomeBox.py index daef97d..cca0355 100644 --- a/shell/view/home/HomeBox.py +++ b/shell/view/home/HomeBox.py @@ -49,12 +49,12 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem): self._donut = None self._my_icon.props.color = IconColor('insensitive') - def do_allocate(self, width, height): - hippo.CanvasBox.do_allocate(self, width, height) + def do_allocate(self, width, height, origin_changed): + hippo.CanvasBox.do_allocate(self, width, height, origin_changed) [icon_width, icon_height] = self._my_icon.get_allocation() - self.move(self._my_icon, (width - icon_width) / 2, - (height - icon_height) / 2) + self.set_position(self._my_icon, (width - icon_width) / 2, + (height - icon_height) / 2) def has_activities(self): return self._donut.has_activities() -- cgit v0.9.1