enable relationship calculator tool to remember its size
This commit is contained in:
parent
216f9a93bf
commit
105f9fb227
@ -282,6 +282,8 @@ register('interface.place-ref-width', 600)
|
||||
register('interface.place-sel-height', 450)
|
||||
register('interface.place-sel-width', 600)
|
||||
register('interface.place-width', 650)
|
||||
register('interface.relcalc-height', 400)
|
||||
register('interface.relcalc-width', 600)
|
||||
register('interface.repo-height', 450)
|
||||
register('interface.repo-ref-height', 450)
|
||||
register('interface.repo-ref-width', 600)
|
||||
|
@ -5,8 +5,6 @@
|
||||
<object class="GtkDialog" id="relcalc">
|
||||
<property name="visible">False</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="default_width">600</property>
|
||||
<property name="default_height">400</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<signal name="delete-event" handler="on_delete_event" swapped="no"/>
|
||||
<child internal-child="vbox">
|
||||
|
@ -111,6 +111,9 @@ class RelCalc(tool.Tool, ManagedWindow):
|
||||
_('Relationship to %(person_name)s'
|
||||
) % {'person_name' : name},
|
||||
self.title)
|
||||
self.height_key = 'interface.relcalc-height'
|
||||
self.width_key = 'interface.relcalc-width'
|
||||
self._set_size()
|
||||
|
||||
self.tree = self.glade.get_object("peopleList")
|
||||
self.text = self.glade.get_object("text1")
|
||||
|
Loading…
Reference in New Issue
Block a user