9795: remember the last location of windows [partial: two more]
This commit is contained in:
parent
5929f2066e
commit
af7c09d8ae
@ -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()
|
||||
|
@ -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">
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user