summaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-04-22 17:41:04 +0200
committerMartin Sivak <msivak@redhat.com>2008-04-22 17:41:04 +0200
commit04ff3938ec96454b2a23039637437b379c734f70 (patch)
tree9b3d348db7c8e6ab511306379f77d71ba5714096 /frontend
parent34d7be47532705078b6940a8fb3d52263b7d4e83 (diff)
downloadfirstaidkit-04ff3938ec96454b2a23039637437b379c734f70.tar.gz
firstaidkit-04ff3938ec96454b2a23039637437b379c734f70.tar.xz
firstaidkit-04ff3938ec96454b2a23039637437b379c734f70.zip
Make the verbosity work in GUI
Diffstat (limited to 'frontend')
-rw-r--r--frontend/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/main.py b/frontend/main.py
index 806712e..2322f1d 100644
--- a/frontend/main.py
+++ b/frontend/main.py
@@ -232,6 +232,7 @@ class CallbacksFlagList(object):
class MainWindow(object):
def __init__(self, cfg, tasker, importance = logging.INFO, dir=""):
self._importance = importance
+ self._cfg = cfg
self._glade = gtk.glade.XML(os.path.join(dir, "firstaidkit.glade"), "MainWindow")
self._window = self._glade.get_widget("MainWindow")
self._cb = CallbacksMainWindow(self._window, cfg, tasker, self._glade, self)
@@ -333,6 +334,11 @@ class MainWindow(object):
func(*args, **kwargs)
return False
+ if self._cfg.operation.verbose == "True":
+ self._importance = logging.DEBUG
+ else:
+ self._importance = logging.INFO
+
"""Read the reporting system message and schedule a call to update stuff in the gui using gobject.idle_add(_o, func, params...)"""
if message["action"]==reporting.END:
gobject.idle_add(_o, self._window.destroy)