Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/home/spreadlayout.py
diff options
context:
space:
mode:
authorPootle Translation <pootle@dev.laptop.org>2008-02-10 13:57:33 (GMT)
committer Pootle Translation <pootle@dev.laptop.org>2008-02-10 13:57:33 (GMT)
commitf63f53f71d24385f5ae0cc639d2c712dc0a2bcc1 (patch)
tree5a6afb15dae6bf8173f96acd59ebdf33087b9228 /shell/view/home/spreadlayout.py
parenta25f2b1caec29f05bdf98401b4a477732b0b8eb1 (diff)
parent4777a0712ba1e951f067c7dd39867b1010d08b03 (diff)
Merge branch 'update-1' of git+ssh://dev.laptop.org/git/sugar into update-1
Diffstat (limited to 'shell/view/home/spreadlayout.py')
-rw-r--r--shell/view/home/spreadlayout.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/view/home/spreadlayout.py b/shell/view/home/spreadlayout.py
index 3463169..3edd717 100644
--- a/shell/view/home/spreadlayout.py
+++ b/shell/view/home/spreadlayout.py
@@ -218,10 +218,6 @@ class SpreadLayout(gobject.GObject, hippo.CanvasLayout):
def do_allocate(self, x, y, width, height,
req_width, req_height, origin_changed):
for child in self._box.get_layout_children():
- # We need to always get requests to not confuse hippo
- min_w, child_width = child.get_width_request()
- min_h, child_height = child.get_height_request(child_width)
-
rect = child.grid_rect
if child.grid_rect:
child.allocate(rect.x * _CELL_SIZE,
@@ -231,6 +227,8 @@ class SpreadLayout(gobject.GObject, hippo.CanvasLayout):
origin_changed)
else:
vertical_offset = child.vertical_offset
+ min_w, child_width = child.get_width_request()
+ min_h, child_height = child.get_height_request(child_width)
child_x = x + (width - child_width) / 2
child_y = y + (height - child_height + vertical_offset) / 2
child.allocate(child_x, child_y, child_width, child_height,