diff options
author | Necoro <> | 2007-11-12 20:03:25 +0000 |
---|---|---|
committer | Necoro <> | 2007-11-12 20:03:25 +0000 |
commit | 0b335d1dd85a8fc39b4cf08803d3e07e246ba6a3 (patch) | |
tree | 338a246e185c98c96a97ec5ea7ff5d69e6fb3108 /portato/gui/gtk | |
parent | 724f755bfcd5e007cb5de912abacb5b97ec9631b (diff) | |
download | portato-0b335d1dd85a8fc39b4cf08803d3e07e246ba6a3.tar.gz portato-0b335d1dd85a8fc39b4cf08803d3e07e246ba6a3.tar.bz2 portato-0b335d1dd85a8fc39b4cf08803d3e07e246ba6a3.zip |
r540@Devoty: necoro | 2007-11-12 16:07:51 +0100
Make Config a subclass of ConfigParser and clean up a little bit
Diffstat (limited to '')
-rw-r--r-- | portato/gui/gtk/windows.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 3c684ad..329b848 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -251,9 +251,9 @@ class PreferenceWindow (AbstractDialog): "deepCheck" : "deep", "newUseCheck" : "newuse", "maskPerVersionCheck" : "maskPerVersion", - "minimizeCheck" : ("minimize", "GUI"), - "systrayCheck" : ("systray", "GUI"), - "testPerVersionCheck" : "testingPerVersion", + "minimizeCheck" : ("hideOnMinimize", "GUI"), + "systrayCheck" : ("showSystray", "GUI"), + "testPerVersionCheck" : "keywordPerVersion", "titleUpdateCheck" : ("updateTitle", "GUI"), "usePerVersionCheck" : "usePerVersion" } @@ -262,9 +262,9 @@ class PreferenceWindow (AbstractDialog): # widget name -> option name edits = { "maskFileEdit" : "maskFile", - "testFileEdit" : "testingFile", + "testFileEdit" : "keywordFile", "useFileEdit" : "useFile", - "syncCommandEdit" : "syncCmd", + "syncCommandEdit" : "syncCommand", "browserEdit" : ("browserCmd", "GUI") } @@ -973,7 +973,7 @@ class MainWindow (Window): self.pauseItems[k] = (v, v.connect_after("activate", self.cb_pause_emerge(k))) # systray - if self.cfg.get_boolean("systray", "GUI"): + if self.cfg.get_boolean("showSystray", "GUI"): self.tray = gtk.status_icon_new_from_file(APP_ICON) self.tray.connect("activate", self.cb_systray_activated) self.tray.connect("popup-menu", lambda icon, btn, time: self.trayPopup.popup(None, None, None, btn, time)) @@ -1316,7 +1316,7 @@ class MainWindow (Window): def cb_sync_clicked (self, action): self.notebook.set_current_page(self.CONSOLE_PAGE) - cmd = self.cfg.get("syncCmd") + cmd = self.cfg.get("syncCommand") if cmd != "emerge --sync": cmd = cmd.split() @@ -1487,7 +1487,7 @@ class MainWindow (Window): return False def cb_minimized (self, window, event): - if self.tray and self.cfg.get_boolean("minimize", "GUI"): + if self.tray and self.cfg.get_boolean("hideOnMinimize", "GUI"): if event.changed_mask & gtk.gdk.WINDOW_STATE_ICONIFIED: if event.new_window_state & gtk.gdk.WINDOW_STATE_ICONIFIED: self.window.hide() |