diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-15 16:10:27 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-15 16:10:27 (GMT) |
commit | 9f5d642591ae21ce328b1ab322795352e0d85aaa (patch) | |
tree | 2e8b3f14f38adc551b969a617e6f36580b346bfb /sugar | |
parent | fbeaf5fb663b7a23da1cf105a76d346ca66f6843 (diff) | |
parent | 0fe529b78aeaeeefeb179ab70833119bfabd9d12 (diff) |
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Diffstat (limited to 'sugar')
-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) |