From 3a6676af4c48a8fa5c2707931badf86f840f82cc Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 14 Feb 2010 00:45:21 +0000 Subject: [PATCH] Gramplet height behaves correctly: is min height if maximized, max height if not svn: r14359 --- src/gui/widgets/grampletpane.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index f8b369f6b..28637619e 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -762,8 +762,8 @@ class GuiGramplet(object): def set_height(self, height): self.height = height - if not self.expand: - self.scrolledwindow.set_size_request(-1, self.height) + self.scrolledwindow.set_size_request(-1, self.height) + self.set_state(self.state) def get_height(self): return self.height @@ -785,6 +785,7 @@ class GuiGramplet(object): def set_expand(self, value): self.expand = value + self.scrolledwindow.set_size_request(-1, self.height) self.set_state(self.state) def set_title(self, new_title):