From af7c09d8ae16b15c0142b7fe95634480c9173a25 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 12 Dec 2016 20:02:36 -0800 Subject: [PATCH] 9795: remember the last location of windows [partial: two more] --- gramps/gui/plug/quick/_textbufdoc.py | 3 ++- gramps/plugins/tool/check.glade | 2 -- gramps/plugins/tool/check.py | 7 ++++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gramps/gui/plug/quick/_textbufdoc.py b/gramps/gui/plug/quick/_textbufdoc.py index cefea83e0..4ba7b378c 100644 --- a/gramps/gui/plug/quick/_textbufdoc.py +++ b/gramps/gui/plug/quick/_textbufdoc.py @@ -61,7 +61,8 @@ class DisplayBuf(ManagedWindow): buttons=(_('_Close'), Gtk.ResponseType.CLOSE)), None, title, True) - self.window.set_size_request(600,400) + self.setup_configs('interface.' + title.lower().replace(' ', ''), + 600, 400) scrolled_window = Gtk.ScrolledWindow() scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC,Gtk.PolicyType.AUTOMATIC) document.text_view = Gtk.TextView() diff --git a/gramps/plugins/tool/check.glade b/gramps/plugins/tool/check.glade index c5b206e23..a75954a41 100644 --- a/gramps/plugins/tool/check.glade +++ b/gramps/plugins/tool/check.glade @@ -4,8 +4,6 @@ False - 450 - 400 dialog diff --git a/gramps/plugins/tool/check.py b/gramps/plugins/tool/check.py index a12878c73..2f7183e89 100644 --- a/gramps/plugins/tool/check.py +++ b/gramps/plugins/tool/check.py @@ -173,7 +173,7 @@ class Check(tool.BatchTool): # We only do this for the dbdir backend. if self.db.__class__.__name__ == 'DbBsddb': if cross_table_duplicates(self.db, uistate): - Report(uistate, _( + CheckReport(uistate, _( "Your Family Tree contains cross table duplicate handles." "\n " "This is bad and can be fixed by making a backup of your\n" @@ -229,7 +229,7 @@ class Check(tool.BatchTool): errs = checker.build_report(uistate) if errs: - Report(uistate, checker.text.getvalue(), cli) + CheckReport(uistate, checker.text.getvalue(), cli) # ------------------------------------------------------------------------- @@ -2667,7 +2667,7 @@ class CheckIntegrity: # Display the results # # ------------------------------------------------------------------------- -class Report(ManagedWindow): +class CheckReport(ManagedWindow): """ Report out the results """ def __init__(self, uistate, text, cli=0): if cli: @@ -2686,6 +2686,7 @@ class Report(ManagedWindow): # topdialog.get_widget("title"), topdialog.get_object("title"), _("Integrity Check Results")) + self.setup_configs('interface.checkreport', 450, 400) self.show()