summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCReporterDialog.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-12-09 11:21:35 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-12-09 11:21:35 +0100
commit588bf134a73f3f78c72697b4404e18c565eb3c76 (patch)
treeb75665c0a5025d68dec7fa0a660a1dfeba2dc993 /src/Gui/CCReporterDialog.py
parente0ad11c1ed8725a92d09ec09e9cb4113b7d90bac (diff)
downloadabrt-588bf134a73f3f78c72697b4404e18c565eb3c76.tar.gz
abrt-588bf134a73f3f78c72697b4404e18c565eb3c76.tar.xz
abrt-588bf134a73f3f78c72697b4404e18c565eb3c76.zip
GUI: added log window
Diffstat (limited to 'src/Gui/CCReporterDialog.py')
-rw-r--r--src/Gui/CCReporterDialog.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py
index 8c904bb0..746c45c2 100644
--- a/src/Gui/CCReporterDialog.py
+++ b/src/Gui/CCReporterDialog.py
@@ -26,10 +26,11 @@ CD_ATT = "a"
# response
REFRESH = -50
+SHOW_LOG = -60
class ReporterDialog():
"""Reporter window"""
- def __init__(self, report, daemon, parent=None):
+ def __init__(self, report, daemon, log=None, parent=None):
self.editable = []
self.row_dict = {}
self.report = report
@@ -87,8 +88,11 @@ class ReporterDialog():
self.tvReport.connect_after("size-allocate", self.on_window_resize)
# start with the warning hidden, so it's not visible when there is no rating
self.wTree.get_widget("ebErrors").hide()
+ self.wTree.get_widget("bLog").connect("clicked", self.show_log_cb, log)
self.hydrate()
+ def show_log_cb(self, widget, log):
+ show_log(log, parent=self.window)
# this callback is called when user press Cancel or Report button in Report dialog
def on_response(self, dialog, response_id, daemon):
# the button has been pressed (probably)
@@ -97,6 +101,9 @@ class ReporterDialog():
if not (self.check_settings(daemon) and self.check_report()):
dialog.stop_emission("response")
self.wTree.get_widget("bSend").stop_emission("clicked")
+ if response_id == SHOW_LOG:
+ # prevent dialog from quitting the run()
+ dialog.stop_emission("response")
def on_send_toggled(self, cell, path, model):
model[path][3] = not model[path][3]