* src/DataViews/GrampletView.py: Gramplet key for detached min size

* src/plugins/DefaultGramplets.py: RelativesGramplet detached size

2008-02-13 Benny Malengier <benny.malengier@gramps-project.org>


svn: r10028
This commit is contained in:
Benny Malengier 2008-02-13 21:29:06 +00:00
parent b7e7f90096
commit e1497c5f3e
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-02-13 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/GrampletView.py: Gramplet key for detached min size
* src/plugins/DefaultGramplets.py: RelativesGramplet detached size
2008-02-13 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/GrampletView.py: minor change
* src/plugins/DefaultGramplets.py: new RelativesGramplet

View File

@ -129,7 +129,8 @@ class GrampletWindow(ManagedWindow.ManagedWindow):
gtk.DIALOG_DESTROY_WITH_PARENT,
(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)),
None, self.title)
self.window.set_size_request(400,300)
self.window.set_size_request(gramplet.detached_width,
gramplet.detached_height)
self.window.connect('response', self.close)
self.gramplet.mainframe.reparent(self.window.vbox)
self.window.show()
@ -395,6 +396,8 @@ class GuiGramplet:
self.expand = logical_true(kwargs.get("expand", False))
self.height = int(kwargs.get("height", 200))
self.column = int(kwargs.get("column", -1))
self.detached_height = int(kwargs.get("detached_height", 300))
self.detached_width = int(kwargs.get("detached_width", 400))
self.row = int(kwargs.get("row", -1))
self.state = kwargs.get("state", "maximized")
self.data = kwargs.get("data", [])

View File

@ -881,4 +881,6 @@ register(type="gramplet",
height=200,
content = RelativesGramplet,
title=_("Active Person's Relatives"),
detached_width = 250,
detached_height = 300,
)