From 9f5d642591ae21ce328b1ab322795352e0d85aaa Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 15 Mar 2007 16:10:27 +0000 Subject: Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar --- (limited to 'sugar') 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) -- cgit v0.9.1