From 216f9a93bfa5113403b292e936b3ef10c279e6b1 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 3 Nov 2016 05:29:52 -0700 Subject: [PATCH] enable 'Select a media object' dialog to remember its size --- gramps/gen/config.py | 2 ++ gramps/gui/editors/addmedia.py | 3 +++ gramps/gui/glade/addmedia.glade | 2 -- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps/gen/config.py b/gramps/gen/config.py index 0e322c408..2c3523670 100644 --- a/gramps/gen/config.py +++ b/gramps/gen/config.py @@ -181,6 +181,8 @@ register('geography.show_cross', False) register('geography.path', "") register('geography.use-keypad', True) +register('interface.addmedia-height', 500) +register('interface.addmedia-width', 700) register('interface.address-height', 450) register('interface.address-width', 650) register('interface.attribute-height', 350) diff --git a/gramps/gui/editors/addmedia.py b/gramps/gui/editors/addmedia.py index b03865797..9e5d73d9d 100644 --- a/gramps/gui/editors/addmedia.py +++ b/gramps/gui/editors/addmedia.py @@ -102,6 +102,9 @@ class AddMedia(ManagedWindow): self.glade.toplevel, self.glade.get_object('title'), _('Select a media object')) + self.height_key = 'interface.addmedia-height' + self.width_key = 'interface.addmedia-width' + self._set_size() self.description = self.glade.get_object("photoDescription") self.image = self.glade.get_object("image") diff --git a/gramps/gui/glade/addmedia.glade b/gramps/gui/glade/addmedia.glade index 5a5762bac..173df082a 100644 --- a/gramps/gui/glade/addmedia.glade +++ b/gramps/gui/glade/addmedia.glade @@ -5,8 +5,6 @@ False - 650 - 450 dialog