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

This commit is contained in:
Paul Franklin 2016-12-12 20:02:36 -08:00
parent 5929f2066e
commit af7c09d8ae
3 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -4,8 +4,6 @@
<requires lib="gtk+" version="3.10"/>
<object class="GtkDialog" id="check">
<property name="can_focus">False</property>
<property name="default_width">450</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">

View File

@ -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()