* src/Editors/_EditPerson.py: save previous window size
* data/gramps.schemas.in: default transactions to off, previous editperson window size * src/Config/_GrampsConfigKeys.py: default transaction to off, previous editperson window size svn: r7632
This commit is contained in:
parent
220ccd309a
commit
0765641c12
@ -1,6 +1,7 @@
|
||||
2006-11-15 Don Allingham <don@gramps-project.org>
|
||||
* data/gramps.schemas.in: default transactions to off
|
||||
* src/Config/_GrampsConfigKeys.py: default transaction to off
|
||||
* src/Editors/_EditPerson.py: save previous window size
|
||||
* data/gramps.schemas.in: default transactions to off, previous editperson window size
|
||||
* src/Config/_GrampsConfigKeys.py: default transaction to off, previous editperson window size
|
||||
* src/Editors/_EditFamily.py: remove dead code
|
||||
* src/plugins/DetDescendantReport.py: remove dead code
|
||||
|
||||
|
@ -285,6 +285,30 @@
|
||||
</locale>
|
||||
</schema>
|
||||
|
||||
<schema>
|
||||
<key>/schemas/apps/gramps/interface/person-height</key>
|
||||
<applyto>/apps/gramps/interface/person-height</applyto>
|
||||
<owner>gramps</owner>
|
||||
<type>int</type>
|
||||
<default>550</default>
|
||||
<locale name="C">
|
||||
<short>Height of the person editor interface.</short>
|
||||
<long>Specifies the height of the person editor interface.</long>
|
||||
</locale>
|
||||
</schema>
|
||||
|
||||
<schema>
|
||||
<key>/schemas/apps/gramps/interface/person-width</key>
|
||||
<applyto>/apps/gramps/interface/person-width</applyto>
|
||||
<owner>gramps</owner>
|
||||
<type>int</type>
|
||||
<default>750</default>
|
||||
<locale name="C">
|
||||
<short>Width of the person editor interface.</short>
|
||||
<long>Specifies the width of the person editor interface.</long>
|
||||
</locale>
|
||||
</schema>
|
||||
|
||||
<schema>
|
||||
<key>/schemas/apps/gramps/interface/filter</key>
|
||||
<applyto>/apps/gramps/interface/filter</applyto>
|
||||
|
@ -41,8 +41,10 @@ DATE_FORMAT = ('preferences','date-format', 1)
|
||||
DONT_ASK = ('interface','dont-ask', 0)
|
||||
HEIGHT = ('interface','height', 1)
|
||||
WIDTH = ('interface','width', 1)
|
||||
FAMILY_HEIGHT = ('interface','family_height', 1)
|
||||
FAMILY_WIDTH = ('interface','family_width', 1)
|
||||
FAMILY_HEIGHT = ('interface','family-height', 1)
|
||||
FAMILY_WIDTH = ('interface','family-width', 1)
|
||||
PERSON_HEIGHT = ('interface','person-height', 1)
|
||||
PERSON_WIDTH = ('interface','person-width', 1)
|
||||
FILTER = ('interface','filter', 0)
|
||||
FPREFIX = ('preferences','fprefix', 2)
|
||||
EPREFIX = ('preferences','eprefix', 2)
|
||||
@ -107,6 +109,8 @@ default_value = {
|
||||
WIDTH : 775,
|
||||
FAMILY_HEIGHT : 500,
|
||||
FAMILY_WIDTH : 700,
|
||||
PERSON_HEIGHT : 550,
|
||||
PERSON_WIDTH : 750,
|
||||
FILTER : False,
|
||||
FPREFIX : 'F%04d',
|
||||
EPREFIX : 'E%04d',
|
||||
|
@ -126,6 +126,9 @@ class EditPerson(EditPrimary):
|
||||
title = _('Edit Person') + ' (%s)' % name
|
||||
|
||||
self.set_window(self.top.get_widget("edit_person"), None, title)
|
||||
width = Config.get(Config.PERSON_WIDTH)
|
||||
height = Config.get(Config.PERSON_HEIGHT)
|
||||
self.window.set_default_size(width, height)
|
||||
|
||||
self.obj_photo = self.top.get_widget("personPix")
|
||||
self.eventbox = self.top.get_widget("eventbox1")
|
||||
@ -698,6 +701,11 @@ class EditPerson(EditPrimary):
|
||||
child_ref_list.insert(target, ref)
|
||||
return child_ref_list
|
||||
|
||||
def _cleanup_on_exit(self):
|
||||
(width, height) = self.window.get_size()
|
||||
Config.set(Config.PERSON_WIDTH, width)
|
||||
Config.set(Config.PERSON_HEIGHT, height)
|
||||
Config.sync()
|
||||
|
||||
|
||||
class GenderDialog(gtk.MessageDialog):
|
||||
|
Loading…
Reference in New Issue
Block a user