summaryrefslogtreecommitdiff
path: root/portato/gui/qt/windows.py
diff options
context:
space:
mode:
authornecoro <>2007-05-15 15:24:59 +0000
committernecoro <>2007-05-15 15:24:59 +0000
commitf523ff155c7d4ad9e2266147e10b88155b91db50 (patch)
tree1cc3b37e126761b634efcafb0c3dc769b5fcfd38 /portato/gui/qt/windows.py
parent1ca7bfa9904fef5573be4cbe96838db15c30999e (diff)
downloadportato-f523ff155c7d4ad9e2266147e10b88155b91db50.tar.gz
portato-f523ff155c7d4ad9e2266147e10b88155b91db50.tar.bz2
portato-f523ff155c7d4ad9e2266147e10b88155b91db50.zip
- added settings: gtk: console font
- show emerge progress in window title
Diffstat (limited to 'portato/gui/qt/windows.py')
-rw-r--r--portato/gui/qt/windows.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py
index 104a1ab..3eb3d31 100644
--- a/portato/gui/qt/windows.py
+++ b/portato/gui/qt/windows.py
@@ -183,7 +183,8 @@ class PreferenceWindow (Window):
"testingCheck" : "testingPerVersion_opt",
"pkgIconsCheck" : ("pkgIcons_opt", "qt_sec"),
"minimizeCheck" : ("minimize_opt", "gui_sec"),
- "systrayCheck" : ("systray_opt", "gui_sec")
+ "systrayCheck" : ("systray_opt", "gui_sec"),
+ "titleUpdateCheck" : ("updateTitle_opt", "gui_sec")
}
# all edits in the window
@@ -591,7 +592,8 @@ class MainWindow (Window):
def __init__ (self):
Window.__init__(self)
- self.setWindowTitle(("Portato (%s)" % VERSION))
+ self.main_title = "Portato (%s)" % VERSION
+ self.setWindowTitle(self.main_title)
self.statusbar.showMessage("Portato - A Portage GUI")
self.doUpdate = False
@@ -658,6 +660,21 @@ class MainWindow (Window):
def _title_update (self, title):
+ def window_update (title):
+ if title is None or not self.cfg.get_boolean("updateTitle_opt", self.cfg.const["gui_sec"]):
+ self.setWindowTitle(self.main_title)
+ else:
+ title = title.strip()
+ if title[0] == '*':
+ self.setWindowTitle(self.main_title)
+ else:
+ space_idx = title.rfind(" ")
+ if space_idx != -1:
+ title = title[:space_idx]
+
+ self.setWindowTitle(("Portato >>> %s" % title))
+
+ window_update(title)
if title is None:
if self.systray: self.systray.setToolTip("")
title = "Console"