Gramplet height behaves correctly: is min height if maximized, max height if not

svn: r14359
This commit is contained in:
Doug Blank 2010-02-14 00:45:21 +00:00
parent fdca317437
commit 3a6676af4c

View File

@ -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):