diff --git a/gramps/gen/config.py b/gramps/gen/config.py index 9bc51136e..eb614e3e5 100644 --- a/gramps/gen/config.py +++ b/gramps/gen/config.py @@ -213,13 +213,14 @@ register('interface.filter-editor-width', 400) register('interface.filter-editor-height', 350) register('interface.fullscreen', False) register('interface.grampletbar-close', False) -register('interface.height', 500) register('interface.ignore-gexiv2', False) register('interface.ignore-osmgpsmap', False) register('interface.lds-height', 450) register('interface.lds-width', 600) register('interface.location-height', 250) register('interface.location-width', 600) +register('interface.main-window-height', 500) +register('interface.main-window-width', 775) register('interface.mapservice', 'OpenStreetMap') register('interface.media-height', 450) register('interface.media-ref-height', 450) @@ -273,7 +274,6 @@ register('interface.toolbar-on', True) register('interface.url-height', 150) register('interface.url-width', 600) register('interface.view', True) -register('interface.width', 775) register('interface.surname-box-height', 150) register('interface.treemodel-cache-size', 1000) diff --git a/gramps/gui/viewmanager.py b/gramps/gui/viewmanager.py index 8cb9104e2..b9b2804f9 100644 --- a/gramps/gui/viewmanager.py +++ b/gramps/gui/viewmanager.py @@ -352,8 +352,8 @@ class ViewManager(CLIManager): """ Builds the GTK interface """ - width = config.get('interface.width') - height = config.get('interface.height') + width = config.get('interface.main-window-width') + height = config.get('interface.main-window-height') self.window = Gtk.Window() self.window.set_icon_from_file(ICON) @@ -747,8 +747,8 @@ class ViewManager(CLIManager): # save the current window size (width, height) = self.window.get_size() - config.set('interface.width', width) - config.set('interface.height', height) + config.set('interface.main-window-width', width) + config.set('interface.main-window-height', height) config.save() Gtk.main_quit()