summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCMainWindow.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 13:50:07 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 13:50:07 +0100
commitbc02aab93e78089ff48e381c0ced0a6dbb116efa (patch)
tree7660b0c7760232e8d76f0133ee993cf0b2320029 /src/Gui/CCMainWindow.py
parentf1c7c25720243cb260410a57fef0c03f330dad68 (diff)
downloadabrt-bc02aab93e78089ff48e381c0ced0a6dbb116efa.tar.gz
abrt-bc02aab93e78089ff48e381c0ced0a6dbb116efa.tar.xz
abrt-bc02aab93e78089ff48e381c0ced0a6dbb116efa.zip
Added error reporting over dbus to daemon, error handling in gui, about dialog
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r--src/Gui/CCMainWindow.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 0e73cf1..440bd3c 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -81,11 +81,29 @@ class MainWindow():
self.wTree.get_widget("bDelete").connect("clicked", self.on_bDelete_clicked, self.dlist)
self.wTree.get_widget("bReport").connect("clicked", self.on_bReport_clicked)
self.wTree.get_widget("miQuit").connect("activate", self.on_bQuit_clicked)
+ self.wTree.get_widget("miAbout").connect("activate", self.on_miAbout_clicked)
+ # connect handlers for daemon signals
self.ccdaemon.connect("crash", self.on_data_changed_cb, None)
self.ccdaemon.connect("analyze-complete", self.on_analyze_complete_cb, self.pBarWindow)
+ self.ccdaemon.connect("error", self.error_cb)
# load data
#self.load()
+
+ def on_miAbout_clicked(self, widget):
+ dialog = self.wTree.get_widget("about")
+ result = dialog.run()
+ dialog.hide()
+
+
+ def error_cb(self, daemon, message=None):
+ # try to hide the progressbar, we dont really care if it was visible ..
+ try:
+ gobject.source_remove(self.timer)
+ self.pBarWindow.hide()
+ except Exception, e:
+ pass
+ gui_error_message("Unable to get report!\n%s" % message)
# call to update the progressbar
def progress_update_cb(self, *args):