enable 'Select a media object' dialog to remember its size

This commit is contained in:
Paul Franklin 2016-11-03 05:29:52 -07:00
parent bb9614282c
commit 216f9a93bf
3 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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")

View File

@ -5,8 +5,6 @@
<requires lib="grampswidgets" version="0.0"/>
<object class="GtkDialog" id="addmedia">
<property name="can_focus">False</property>
<property name="default_width">650</property>
<property name="default_height">450</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox30">