9795: remember the last location of windows [partial: three more]

This commit is contained in:
Paul Franklin 2016-12-14 22:05:04 -08:00
parent beb3962f52
commit 083a2a721e
4 changed files with 4 additions and 2 deletions

View File

@ -124,6 +124,7 @@ class EditDate(ManagedWindow):
self.top.toplevel,
self.top.get_object('title'),
_('Date selection'))
self.setup_configs('interface.editdate', 620, 320)
self.statusbar = self.top.get_object('statusbar')
self.ok_button = self.top.get_object('ok_button')

View File

@ -85,6 +85,8 @@ class EditLink(ManagedWindow):
self.set_window(self.top.toplevel,
self.top.get_object("title"),
_('Link Editor'))
self.setup_configs('interface.editlink', 600, 160)
self.uri_list = self.top.get_object('link_type')
for text in [_("Internet Address"), # 0 this order range above
_("Event"), # 1

View File

@ -5,7 +5,6 @@
<requires lib="grampswidgets" version="0.0"/>
<object class="GtkDialog" id="editurl">
<property name="can_focus">False</property>
<property name="default_width">600</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">

View File

@ -80,7 +80,7 @@ class LastNameDialog(ManagedWindow):
self.__dlg = Gtk.Dialog(None, uistate.window, flags, buttons)
self.__dlg.set_position(Gtk.WindowPosition.CENTER_ON_PARENT)
self.set_window(self.__dlg, None, _('Select surname'))
self.window.set_default_size(400, 400)
self.setup_configs('interface.lastnamedialog', 400, 400)
# build up a container to display all of the people of interest
self.__model = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_INT)