From 581f7e6b508c43250c4191ad740dd1b31a4ca9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 27 Jan 2009 22:00:12 +0100 Subject: Remove the cluttering section names; rename main session section from 'window' to 'gui' --- portato/gui/windows/preference.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'portato/gui/windows/preference.py') 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) -- cgit v1.2.3