From 28bf8479fd97ba9b765f5e01b09fd2957a1f2bb2 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 2 Feb 2017 19:30:02 -0800 Subject: [PATCH] 9795: remember the last location of windows [Dashboard gramplets] --- gramps/gui/widgets/grampletpane.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/gramps/gui/widgets/grampletpane.py b/gramps/gui/widgets/grampletpane.py index 04b73a1ef..05b66f24b 100644 --- a/gramps/gui/widgets/grampletpane.py +++ b/gramps/gui/widgets/grampletpane.py @@ -236,8 +236,9 @@ class GrampletWindow(ManagedWindow): Gtk.DialogFlags.DESTROY_WITH_PARENT, (_('_Close'), Gtk.ResponseType.CLOSE)), None, self.title) - self.window.set_size_request(gramplet.detached_width, - gramplet.detached_height) + cfg_name = gramplet.gname.replace(' ', '').lower() + '-gramplet' + self.setup_configs('interface.' + cfg_name, + gramplet.detached_width, gramplet.detached_height) self.window.add_button(_('_Help'), Gtk.ResponseType.HELP) # add gramplet: if self.gramplet.pui: @@ -1585,20 +1586,6 @@ class GrampletPane(Gtk.ScrolledWindow): "%s.height" % gramplet.title, self._config.set, config=self._config) - # Detached height - configdialog.add_pos_int_entry(grid, - _('Detached width'), - 3, - "%s.detached_width" % gramplet.title, - self._config.set, - config=self._config) - # Detached width - configdialog.add_pos_int_entry(grid, - _('Detached height'), - 4, - "%s.detached_height" % gramplet.title, - self._config.set, - config=self._config) # Options: options = gramplet.make_gui_options() if options: