summaryrefslogtreecommitdiff
path: root/portato/gui/windows/preference.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-01-27 22:00:12 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-01-27 22:00:12 +0100
commit581f7e6b508c43250c4191ad740dd1b31a4ca9af (patch)
tree97f0510981a39b0947ad4321c45b94011098adbd /portato/gui/windows/preference.py
parentb7b78173b6b2d8eb6f7d5260868cf5efdc1d7ca0 (diff)
downloadportato-581f7e6b508c43250c4191ad740dd1b31a4ca9af.tar.gz
portato-581f7e6b508c43250c4191ad740dd1b31a4ca9af.tar.bz2
portato-581f7e6b508c43250c4191ad740dd1b31a4ca9af.zip
Remove the cluttering section names; rename main session section from 'window' to 'gui'
Diffstat (limited to 'portato/gui/windows/preference.py')
-rw-r--r--portato/gui/windows/preference.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/gui/windows/preference.py b/portato/gui/windows/preference.py
index fe1947b..87a1860 100644
--- a/portato/gui/windows/preference.py
+++ b/portato/gui/windows/preference.py
@@ -82,13 +82,13 @@ class PreferenceWindow (AbstractDialog):
self.cfg = cfg
# the size
- height = self.cfg.get_session("prefheight", "window")
+ height = self.cfg.get_session("prefheight", "GUI")
if height is None:
height = int(gtk.gdk.screen_height() * 0.8) # see 4/5 * screen_height as maximum
else:
height = int(height)
- width = self.cfg.get_session("prefwidth", "window")
+ width = self.cfg.get_session("prefwidth", "GUI")
if width is None:
width = -1 # default
else:
@@ -233,5 +233,5 @@ class PreferenceWindow (AbstractDialog):
return True
def cb_size_changed (self, widget, event, *args):
- self.cfg.set_session("prefheight", "window", event.height)
- self.cfg.set_session("prefwidth", "window", event.width)
+ self.cfg.set_session("prefheight", "GUI", event.height)
+ self.cfg.set_session("prefwidth", "GUI", event.width)