Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/desktop/snowflakelayout.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/desktop/snowflakelayout.py')
-rw-r--r--src/jarabe/desktop/snowflakelayout.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/jarabe/desktop/snowflakelayout.py b/src/jarabe/desktop/snowflakelayout.py
index 5ad5f26..9f47912 100644
--- a/src/jarabe/desktop/snowflakelayout.py
+++ b/src/jarabe/desktop/snowflakelayout.py
@@ -71,10 +71,20 @@ class SnowflakeLayout(Gtk.Container):
del self._children[child]
self.remove(child)
- def do_size_request(self, requisition):
+ def do_get_preferred_size(self):
size = self._calculate_size()
+ requisition = Gtk.Requisition()
requisition.width = size
requisition.height = size
+ return (requisition, requisition)
+
+ def do_get_preferred_width(self):
+ size = self._calculate_size()
+ return (size, size)
+
+ def do_get_preferred_height(self):
+ size = self._calculate_size()
+ return (size, size)
def do_size_allocate(self, allocation):
self.set_allocation(allocation)