9795: remember the last location of windows [partial: the selectors]
This commit is contained in:
parent
290fd6ec43
commit
50bb8ffbbc
@ -194,8 +194,6 @@ register('interface.attribute-height', 350)
|
||||
register('interface.attribute-width', 600)
|
||||
register('interface.child-ref-height', 450)
|
||||
register('interface.child-ref-width', 600)
|
||||
register('interface.citation-sel-height', 450)
|
||||
register('interface.citation-sel-width', 600)
|
||||
register('interface.dont-ask', False)
|
||||
register('interface.view-categories',
|
||||
["Dashboard", "People", "Relationships", "Families",
|
||||
@ -203,10 +201,6 @@ register('interface.view-categories',
|
||||
"Citations", "Repositories", "Media", "Notes"])
|
||||
register('interface.event-ref-height', 450)
|
||||
register('interface.event-ref-width', 600)
|
||||
register('interface.event-sel-height', 450)
|
||||
register('interface.event-sel-width', 600)
|
||||
register('interface.family-sel-height', 450)
|
||||
register('interface.family-sel-width', 600)
|
||||
register('interface.filter', False)
|
||||
register('interface.fullscreen', False)
|
||||
register('interface.grampletbar-close', False)
|
||||
@ -224,12 +218,8 @@ register('interface.main-window-width', 775)
|
||||
register('interface.mapservice', 'OpenStreetMap')
|
||||
register('interface.media-ref-height', 450)
|
||||
register('interface.media-ref-width', 600)
|
||||
register('interface.media-sel-height', 450)
|
||||
register('interface.media-sel-width', 600)
|
||||
register('interface.name-height', 350)
|
||||
register('interface.name-width', 600)
|
||||
register('interface.note-sel-height', 450)
|
||||
register('interface.note-sel-width', 600)
|
||||
register('interface.open-with-default-viewer', False)
|
||||
register('interface.pedview-layout', 0)
|
||||
register('interface.pedview-show-images', True)
|
||||
@ -239,26 +229,18 @@ register('interface.pedview-tree-direction', 2)
|
||||
register('interface.pedview-show-unknown-people', False)
|
||||
register('interface.person-ref-height', 350)
|
||||
register('interface.person-ref-width', 600)
|
||||
register('interface.person-sel-height', 450)
|
||||
register('interface.person-sel-width', 600)
|
||||
register('interface.place-name-height', 100)
|
||||
register('interface.place-name-width', 450)
|
||||
register('interface.place-ref-height', 450)
|
||||
register('interface.place-ref-width', 600)
|
||||
register('interface.place-sel-height', 450)
|
||||
register('interface.place-sel-width', 600)
|
||||
register('interface.relcalc-height', 400)
|
||||
register('interface.relcalc-width', 600)
|
||||
register('interface.repo-ref-height', 450)
|
||||
register('interface.repo-ref-width', 600)
|
||||
register('interface.repo-sel-height', 450)
|
||||
register('interface.repo-sel-width', 600)
|
||||
register('interface.sidebar-text', True)
|
||||
register('interface.size-checked', False)
|
||||
register('interface.source-ref-height', 450)
|
||||
register('interface.source-ref-width', 600)
|
||||
register('interface.source-sel-height', 450)
|
||||
register('interface.source-sel-width', 600)
|
||||
register('interface.statusbar', 1)
|
||||
register('interface.toolbar-on', True)
|
||||
register('interface.url-height', 150)
|
||||
|
@ -61,8 +61,7 @@ class SelectCitation(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.source-sel-width'
|
||||
self.height_key = 'interface.source-sel-height'
|
||||
self.setup_configs('interface.source-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Source or Citation")
|
||||
|
@ -56,8 +56,7 @@ class SelectEvent(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.event-sel-width'
|
||||
self.height_key = 'interface.event-sel-height'
|
||||
self.setup_configs('interface.event-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Event")
|
||||
|
@ -56,8 +56,7 @@ class SelectFamily(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.family-sel-width'
|
||||
self.height_key = 'interface.family-sel-height'
|
||||
self.setup_configs('interface.family-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Family")
|
||||
|
@ -61,8 +61,7 @@ class SelectNote(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.note-sel-width'
|
||||
self.height_key = 'interface.note-sel-height'
|
||||
self.setup_configs('interface.note-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Note")
|
||||
|
@ -87,8 +87,7 @@ class SelectObject(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.media-sel-width'
|
||||
self.height_key = 'interface.media-sel-height'
|
||||
self.setup_configs('interface.media-sel', 600, 450)
|
||||
self.preview = Gtk.Image()
|
||||
self.preview.set_size_request(int(THUMBSCALE),
|
||||
int(THUMBSCALE))
|
||||
|
@ -79,8 +79,7 @@ class SelectPerson(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.person-sel-width'
|
||||
self.height_key = 'interface.person-sel-height'
|
||||
self.setup_configs('interface.person-sel', 600, 450)
|
||||
self.tree.connect('key-press-event', self._key_press)
|
||||
|
||||
def get_window_title(self):
|
||||
|
@ -57,8 +57,7 @@ class SelectPlace(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.place-sel-width'
|
||||
self.height_key = 'interface.place-sel-height'
|
||||
self.setup_configs('interface.place-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Place")
|
||||
|
@ -56,8 +56,7 @@ class SelectRepository(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.repo-sel-width'
|
||||
self.height_key = 'interface.repo-sel-height'
|
||||
self.setup_configs('interface.repo-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Repository")
|
||||
|
@ -56,8 +56,7 @@ class SelectSource(BaseSelector):
|
||||
"""
|
||||
Perform local initialisation for this class
|
||||
"""
|
||||
self.width_key = 'interface.source-sel-width'
|
||||
self.height_key = 'interface.source-sel-height'
|
||||
self.setup_configs('interface.source-sel', 600, 450)
|
||||
|
||||
def get_window_title(self):
|
||||
return _("Select Source")
|
||||
|
Loading…
Reference in New Issue
Block a user