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