From f5681c0168017cc27b07e57ddc093b7517ddf17c Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 7 Feb 2009 23:02:58 +0000 Subject: [PATCH] Set and save window dimensions for Child Ref editor svn: r11906 --- src/Config/_GrampsConfigKeys.py | 6 +++++- src/Editors/_EditChildRef.py | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index 51a905dd0..de56a3ba2 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/src/Config/_GrampsConfigKeys.py @@ -2,7 +2,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2006-2007 Donald N. Allingham -# Copyright (C) 2008 Gary Burton +# Copyright (C) 2008-2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -88,6 +88,8 @@ EVENT_HEIGHT = ('interface', 'event-height', 1) EVENT_WIDTH = ('interface', 'event-width', 1) EVENT_REF_HEIGHT = ('interface', 'event-ref-height', 1) EVENT_REF_WIDTH = ('interface', 'event-ref-width', 1) +CHILD_REF_HEIGHT = ('interface', 'child-ref-height', 1) +CHILD_REF_WIDTH = ('interface', 'child-ref-width', 1) PLACE_HEIGHT = ('interface', 'place-height', 1) PLACE_WIDTH = ('interface', 'place-width', 1) REPO_HEIGHT = ('interface', 'repo-height', 1) @@ -220,6 +222,8 @@ default_value = { EVENT_WIDTH : 600, EVENT_REF_HEIGHT : 450, EVENT_REF_WIDTH : 600, + CHILD_REF_HEIGHT : 450, + CHILD_REF_WIDTH : 600, PLACE_HEIGHT : 450, PLACE_WIDTH : 650, REPO_HEIGHT : 450, diff --git a/src/Editors/_EditChildRef.py b/src/Editors/_EditChildRef.py index b1fa9af21..59a7c18a8 100644 --- a/src/Editors/_EditChildRef.py +++ b/src/Editors/_EditChildRef.py @@ -2,6 +2,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham +# 2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -49,6 +50,7 @@ import const from _EditSecondary import EditSecondary from gen.lib import NoteType import Errors +import Config from DisplayTabs import SourceEmbedList, NoteTab from widgets import MonitoredDataType, PrivacyButton @@ -86,6 +88,8 @@ class EditChildRef(EditSecondary): childref, callback) def _local_init(self): + self.width_key = Config.CHILD_REF_WIDTH + self.height_key = Config.CHILD_REF_HEIGHT self.top = glade.XML(const.GLADE_FILE, "cref_edit","gramps") self.set_window(self.top.get_widget("cref_edit"), self.top.get_widget("title"),