diff options
author | Dan Williams <dcbw@redhat.com> | 2007-03-15 15:21:35 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-03-15 15:21:35 (GMT) |
commit | a83211dbb9f10ed94c7fa8d9799b763891272277 (patch) | |
tree | 6b94c2aa634fa1bddc078a74ab1a8a186f18aa67 | |
parent | 4fbfd1625ca371137a75d3be587214625e2368db (diff) |
Fix tracebacks in snowflakeboxes
-rw-r--r-- | sugar/graphics/snowflakebox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/graphics/snowflakebox.py b/sugar/graphics/snowflakebox.py index 540b8b0..dfef45b 100644 --- a/sugar/graphics/snowflakebox.py +++ b/sugar/graphics/snowflakebox.py @@ -73,14 +73,14 @@ class SnowflakeBox(hippo.CanvasBox, hippo.CanvasItem): max_child_size = 0 for child in self.get_children(): [min_w, natural_w] = child.get_width_request() - [min_h, natural_h] = child.get_height_request(width) + [min_h, natural_h] = child.get_height_request(min_w) max_child_size = max (max_child_size, min_w) max_child_size = max (max_child_size, min_h) width = self._get_radius() * 2 + \ max_child_size + _FLAKE_DISTANCE * 2 - return [width, width] + return (width, width) def do_allocate(self, width, height, origin_changed): hippo.CanvasBox.do_allocate(self, width, height, origin_changed) |