Set maximum for default GrampsBar size
svn: r18375
This commit is contained in:
parent
e1ae74e952
commit
020dae3d72
@ -314,8 +314,8 @@ class GrampsBar(gtk.Notebook):
|
||||
"""
|
||||
Add a tab to the notebook for the given gramplet.
|
||||
"""
|
||||
width = int(self.uistate.screen_width() * 0.25)
|
||||
height = int(self.uistate.screen_height() * 0.20)
|
||||
width = min(int(self.uistate.screen_width() * 0.25), 400)
|
||||
height = min(int(self.uistate.screen_height() * 0.20), 400)
|
||||
gramplet.set_size_request(width, height)
|
||||
|
||||
page_num = self.append_page(gramplet)
|
||||
|
Loading…
Reference in New Issue
Block a user