diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-01-19 14:47:33 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-01-19 14:47:33 (GMT) |
commit | 5ca728b1d31139f059a3b3c94610db65d17e9c57 (patch) | |
tree | 7aed32fad54fb14d046a88b775b76e63d239bf8a /shell/view/home/HomeBox.py | |
parent | 3bedd451e3e1e60c92fe4d888fcd2f2f43f7f50b (diff) |
Fix API for hippo-canvas 0.2
Diffstat (limited to 'shell/view/home/HomeBox.py')
-rw-r--r-- | shell/view/home/HomeBox.py | 8 |
1 files changed, 4 insertions, 4 deletions
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() |