diff --git a/gramps/gui/configure.py b/gramps/gui/configure.py index ed3dfb126..e93daa91e 100644 --- a/gramps/gui/configure.py +++ b/gramps/gui/configure.py @@ -104,6 +104,7 @@ class DisplayNameEditor(ManagedWindow): Gtk.Dialog(_('Display Name Editor'), buttons=(_('_Close'), Gtk.ResponseType.CLOSE)), None, _('Display Name Editor'), None) + self.setup_configs('interface.displaynameeditor', 820, 550) grid = self.dialog._build_custom_name_ui() label = Gtk.Label(label=_("""The following keywords are replaced with the appropriate name parts: Given - given name (first name) Surname - surnames (with prefix and connectors) @@ -126,7 +127,6 @@ UPPERCASE keyword forces uppercase. Extra parentheses, commas are removed. Other label.set_use_markup(True) self.window.vbox.pack_start(label, False, True, 0) self.window.vbox.pack_start(grid, True, True, 0) - self.window.set_default_size(600, 550) self.window.connect('response', self.close) self.show() def close(self, *obj): @@ -178,6 +178,7 @@ class ConfigureDialog(ManagedWindow): Gtk.Dialog(dialogtitle, buttons=(_('_Close'), Gtk.ResponseType.CLOSE)), None, dialogtitle, None) + self.setup_configs('interface.configuredialog', 920, 450) self.panel = Gtk.Notebook() self.panel.set_scrollable(True) self.window.vbox.pack_start(self.panel, True, True, 0) diff --git a/gramps/gui/dbman.py b/gramps/gui/dbman.py index 8d03be2e7..6e52c11e7 100644 --- a/gramps/gui/dbman.py +++ b/gramps/gui/dbman.py @@ -116,11 +116,10 @@ class Information(ManagedWindow): super().__init__(uistate, [], self) self.window = Gtk.Dialog() self.set_window(self.window, None, _("Database Information")) + self.setup_configs('interface.information', 600, 400) self.window.set_modal(True) self.ok = self.window.add_button(_('_OK'), Gtk.ResponseType.OK) self.ok.connect('clicked', self.on_ok_clicked) - self.window.set_position(Gtk.WindowPosition.CENTER) - self.window.set_default_size(600, 400) s = Gtk.ScrolledWindow() titles = [ (_('Setting'), 0, 150), diff --git a/gramps/gui/glade/plugins.glade b/gramps/gui/glade/plugins.glade index 95749ee0e..40b963d7b 100644 --- a/gramps/gui/glade/plugins.glade +++ b/gramps/gui/glade/plugins.glade @@ -5,8 +5,6 @@ True False - 600 - 400 diff --git a/gramps/gui/plug/_dialogs.py b/gramps/gui/plug/_dialogs.py index 9a8a2ba29..5a32ca7ab 100644 --- a/gramps/gui/plug/_dialogs.py +++ b/gramps/gui/plug/_dialogs.py @@ -101,6 +101,12 @@ class PluginDialog(ManagedWindow): self.title = self.dialog.get_object("title") self.set_window(window, self.title, msg) + if content == _REPORTS: + self.setup_configs('interface.reportplugindialog', 600, 400) + elif content == _TOOLS: + self.setup_configs('interface.toolplugindialog', 600, 400) + else: + raise ValueError("PluginDialog selection must be a report or tool") self.store = Gtk.TreeStore(str) self.selection = self.tree.get_selection() diff --git a/gramps/gui/plug/_windows.py b/gramps/gui/plug/_windows.py index ef27e72bb..22b4d269b 100644 --- a/gramps/gui/plug/_windows.py +++ b/gramps/gui/plug/_windows.py @@ -101,7 +101,7 @@ class PluginStatus(ManagedWindow): Gtk.DialogFlags.DESTROY_WITH_PARENT, (_('_Close'), Gtk.ResponseType.CLOSE)), None, self.title) - self.window.set_size_request(750, 400) + self.setup_configs('interface.pluginstatus', 750, 400) self.window.connect('response', self.close) notebook = Gtk.Notebook() @@ -681,7 +681,7 @@ class PluginTrace(ManagedWindow): Gtk.DialogFlags.DESTROY_WITH_PARENT, (_('_Close'), Gtk.ResponseType.CLOSE)), None, title) - self.window.set_size_request(600, 400) + self.setup_configs('interface.plugintrace', 600, 400) self.window.connect('response', self.close) scrolled_window = Gtk.ScrolledWindow() diff --git a/gramps/gui/tipofday.py b/gramps/gui/tipofday.py index f88f0ee29..26b75db83 100644 --- a/gramps/gui/tipofday.py +++ b/gramps/gui/tipofday.py @@ -66,6 +66,7 @@ class TipOfDay(ManagedWindow): xml.get_object("title"), _("Tip of the Day"), _("Tip of the Day")) + self.setup_configs('interface.tipofday', 550, 350) self.tip = xml.get_object("tip") self.use = xml.get_object('usetips') diff --git a/gramps/gui/undohistory.py b/gramps/gui/undohistory.py index 645c36ff7..dd38c0d7d 100644 --- a/gramps/gui/undohistory.py +++ b/gramps/gui/undohistory.py @@ -91,7 +91,7 @@ class UndoHistory(ManagedWindow): Gtk.ResponseType.CLOSE) self.set_window(window, None, self.title) - self.window.set_size_request(400, 200) + self.setup_configs('interface.undohistory', 400, 200) self.window.connect('response', self._response) scrolled_window = Gtk.ScrolledWindow()