Gramplet height behaves correctly: is min height if maximized, max height if not
svn: r14359
This commit is contained in:
parent
fdca317437
commit
3a6676af4c
@ -762,8 +762,8 @@ class GuiGramplet(object):
|
|||||||
|
|
||||||
def set_height(self, height):
|
def set_height(self, height):
|
||||||
self.height = 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):
|
def get_height(self):
|
||||||
return self.height
|
return self.height
|
||||||
@ -785,6 +785,7 @@ class GuiGramplet(object):
|
|||||||
|
|
||||||
def set_expand(self, value):
|
def set_expand(self, value):
|
||||||
self.expand = value
|
self.expand = value
|
||||||
|
self.scrolledwindow.set_size_request(-1, self.height)
|
||||||
self.set_state(self.state)
|
self.set_state(self.state)
|
||||||
|
|
||||||
def set_title(self, new_title):
|
def set_title(self, new_title):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user