9795: remember the last location of windows [Reorder]

This commit is contained in:
Paul Franklin 2016-12-23 12:52:58 -08:00
parent 3b4ceeb630
commit f3053b19ca
2 changed files with 3 additions and 4 deletions

View File

@ -6,8 +6,6 @@
<property name="visible">False</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="default_width">500</property>
<property name="default_height">400</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox21">

View File

@ -23,8 +23,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.sgettext
#-------------------------------------------------------------------------
#
@ -45,6 +43,8 @@ _LOG = logging.getLogger("gui.widgets.reorderfam")
# Gramps Modules
#
#-------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.sgettext
from gramps.gen.db import DbTxn
from ..listmodel import ListModel
from ..managedwindow import ManagedWindow
@ -77,6 +77,7 @@ class Reorder(ManagedWindow):
fenable = len(self.family_list) > 1
self.set_window(top, None, _("Reorder Relationships"))
self.setup_configs('interface.reorder', 500, 400)
self.ptree = xml.get_object('ptree')
self.pmodel = ListModel(self.ptree,