2006-11-11 Don Allingham <don@gramps-project.org>
* src/Config/_GrampsConfigKeys.py: add saving of family editor size * src/Editors/_EditFamily.py: add saving of family editor size * src/DisplayTabs/_GalleryTab.py: Catch possible exception * src/glade/gramps.glade: add saving of family editor size * src/DbLoader.py: Display error message on RUNRECOVERY error * src/DisplayTabs/_AddrEmbedList.py: make labels more consistent (#513) svn: r7616
This commit is contained in:
@ -441,6 +441,11 @@ class EditFamily(EditPrimary):
|
||||
self.set_window(self.top.get_widget("family_editor"),
|
||||
None,_('Family Editor'))
|
||||
|
||||
# restore window size
|
||||
width = Config.get(Config.FAM_WIDTH)
|
||||
height = Config.get(Config.FAM_HEIGHT)
|
||||
self.window.set_default_size(width, height)
|
||||
|
||||
self.fbirth = self.top.get_widget('fbirth')
|
||||
self.fdeath = self.top.get_widget('fdeath')
|
||||
|
||||
@ -459,6 +464,7 @@ class EditFamily(EditPrimary):
|
||||
|
||||
self.mbox = self.top.get_widget('mbox')
|
||||
self.fbox = self.top.get_widget('fbox')
|
||||
self.window.show()
|
||||
|
||||
def _connect_signals(self):
|
||||
self.define_ok_button(self.top.get_widget('ok'), self.save)
|
||||
@ -882,3 +888,9 @@ class EditFamily(EditPrimary):
|
||||
self.db.transaction_commit(trans,_("Edit Family"))
|
||||
|
||||
self.close()
|
||||
|
||||
def _cleanup_on_exit(self):
|
||||
(width, height) = self.window.get_size()
|
||||
Config.set(Config.FAM_WIDTH, width)
|
||||
Config.set(Config.FAM_HEIGHT, height)
|
||||
Config.sync()
|
||||
|
Reference in New Issue
Block a user