summaryrefslogtreecommitdiff
path: root/portato/gui/windows/preference.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-01-27 22:01:27 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-01-27 22:01:27 +0100
commit29297f7e706d8635d582c257aba63d7c3230efdb (patch)
tree97f0510981a39b0947ad4321c45b94011098adbd /portato/gui/windows/preference.py
parent6224da7a5810ef8a9309bc0fd919759e832edcf6 (diff)
parent581f7e6b508c43250c4191ad740dd1b31a4ca9af (diff)
downloadportato-29297f7e706d8635d582c257aba63d7c3230efdb.tar.gz
portato-29297f7e706d8635d582c257aba63d7c3230efdb.tar.bz2
portato-29297f7e706d8635d582c257aba63d7c3230efdb.zip
Merged enhanced session handling
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)