Rename Main Interface Config keys[for PR-60]

This commit is contained in:
Sam Manzi 2016-04-19 10:15:05 +10:00
parent f093c8bd79
commit 919b91ba38
No known key found for this signature in database
GPG Key ID: F4A16068AE36B402
2 changed files with 6 additions and 6 deletions

View File

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

View File

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