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 /sugar/graphics/snowflakebox.py | |
parent | 3bedd451e3e1e60c92fe4d888fcd2f2f43f7f50b (diff) |
Fix API for hippo-canvas 0.2
Diffstat (limited to 'sugar/graphics/snowflakebox.py')
-rw-r--r-- | sugar/graphics/snowflakebox.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/graphics/snowflakebox.py b/sugar/graphics/snowflakebox.py index 30f5b05..9e2fd78 100644 --- a/sugar/graphics/snowflakebox.py +++ b/sugar/graphics/snowflakebox.py @@ -47,7 +47,7 @@ class SnowflakeBox(hippo.CanvasBox, hippo.CanvasItem): x = cx - (width / 2) y = cy - (height / 2) - self.move(self._root, int(x), int(y)) + self.set_position(self._root, int(x), int(y)) def _get_n_children(self): return len(self.get_children()) - 1 @@ -65,7 +65,7 @@ class SnowflakeBox(hippo.CanvasBox, hippo.CanvasItem): x = cx + math.cos(angle) * r - (width / 2) y = cy + math.sin(angle) * r - (height / 2) - self.move(child, int(x), int(y)) + self.set_position(child, int(x), int(y)) def do_get_width_request(self): hippo.CanvasBox.do_get_width_request(self) @@ -84,7 +84,7 @@ class SnowflakeBox(hippo.CanvasBox, hippo.CanvasItem): hippo.CanvasBox.do_get_height_request(self, width) return width - def do_allocate(self, width, height): + def do_allocate(self, width, height, origin_changed): hippo.CanvasBox.do_allocate(self, width, height) self._layout_root() |