enable 'Select a media object' dialog to remember its size
This commit is contained in:
parent
bb9614282c
commit
216f9a93bf
@ -181,6 +181,8 @@ register('geography.show_cross', False)
|
|||||||
register('geography.path', "")
|
register('geography.path', "")
|
||||||
register('geography.use-keypad', True)
|
register('geography.use-keypad', True)
|
||||||
|
|
||||||
|
register('interface.addmedia-height', 500)
|
||||||
|
register('interface.addmedia-width', 700)
|
||||||
register('interface.address-height', 450)
|
register('interface.address-height', 450)
|
||||||
register('interface.address-width', 650)
|
register('interface.address-width', 650)
|
||||||
register('interface.attribute-height', 350)
|
register('interface.attribute-height', 350)
|
||||||
|
@ -102,6 +102,9 @@ class AddMedia(ManagedWindow):
|
|||||||
self.glade.toplevel,
|
self.glade.toplevel,
|
||||||
self.glade.get_object('title'),
|
self.glade.get_object('title'),
|
||||||
_('Select a media object'))
|
_('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.description = self.glade.get_object("photoDescription")
|
||||||
self.image = self.glade.get_object("image")
|
self.image = self.glade.get_object("image")
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
<requires lib="grampswidgets" version="0.0"/>
|
<requires lib="grampswidgets" version="0.0"/>
|
||||||
<object class="GtkDialog" id="addmedia">
|
<object class="GtkDialog" id="addmedia">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="default_width">650</property>
|
|
||||||
<property name="default_height">450</property>
|
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="dialog-vbox30">
|
<object class="GtkBox" id="dialog-vbox30">
|
||||||
|
Loading…
Reference in New Issue
Block a user