Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaul Gutierrez Segales <rgs@collabora.co.uk>2011-09-11 15:14:31 (GMT)
committer Simon Schampijer <simon@laptop.org>2011-09-12 10:32:44 (GMT)
commitd6114330d535fd69800303937e78303cfddf52cd (patch)
tree0efd5bcc995e8d9ba9f3516a77b10340b1ac089d
parent73432f62241cc0c2c566a5d1e06be8f7786a457f (diff)
MeshBox: use size_allocate and size_request
-rw-r--r--src/jarabe/desktop/meshbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jarabe/desktop/meshbox.py b/src/jarabe/desktop/meshbox.py
index a7cf684..941869f 100644
--- a/src/jarabe/desktop/meshbox.py
+++ b/src/jarabe/desktop/meshbox.py
@@ -474,7 +474,8 @@ class MeshContainer(gtk.Container):
return int(width / _CELL_SIZE), int(height / _CELL_SIZE)
def _grid_child_changed_cb(self, grid, child):
- child.emit_request_changed()
+ rect = self._grid.get_child_rect(child)
+ child.size_allocate(rect)
class MeshBox(gtk.VBox):
__gtype_name__ = 'SugarMeshBox'
@@ -525,8 +526,7 @@ class MeshBox(gtk.VBox):
width = allocation.width
height = allocation.height
- min_w_, icon_width = self._owner_icon.get_width_request()
- min_h_, icon_height = self._owner_icon.get_height_request(icon_width)
+ icon_width, icon_height = self._owner_icon.size_request()
x = (width - icon_width) / 2
y = (height - icon_height) / 2 - style.GRID_CELL_SIZE
self._mesh_container.move(self._owner_icon, x, y)