Store sidebar state in the configuration file

svn: r16274
This commit is contained in:
Nick Hall
2010-12-12 18:58:22 +00:00
parent 84c07b3f56
commit b79b09b86b
9 changed files with 72 additions and 60 deletions

View File

@@ -479,7 +479,6 @@ class GeoView(HtmlView):
self.filter.pack_start(self.hpaned, True, True)
self.signal_map = {'place-add': self._place_changed,
'place-update' : self._place_changed}
self.init_config()
self.context_id = 0
self.active = False
self.already_testing = False

View File

@@ -474,7 +474,6 @@ class HtmlView(PageView):
# The two toolkits ( webkit and mozilla ) are available.
# The user is able to choose what toolkit he will use.
try:
self.init_config()
# preferences.webkit is useful only in geoview;
# not in htmlview.
if self._config.get('preferences.webkit'):

View File

@@ -868,7 +868,6 @@ class PedigreeView(NavigationView):
We use this to create immediately the config file with this ident.
"""
NavigationView.set_ident(self, ident)
self.init_config()
# Automatic resize
self.force_size = self._config.get('interface.pedview-tree-size')

View File

@@ -189,7 +189,6 @@ class RelationshipView(NavigationView):
We use this to create immediately the config file with this ident.
"""
NavigationView.set_ident(self, ident)
self.init_config()
self.show_siblings = self._config.get('preferences.family-siblings')
self.show_details = self._config.get('preferences.family-details')
self.use_shade = self._config.get('preferences.relation-shade')