summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCMainWindow.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-08-24 17:37:03 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-08-24 17:37:03 +0200
commitd4a40899c270d825ff5d602fcdd5941b3fd7bd77 (patch)
treeab945262a1b16faa9f687978e0d85d85c3a6668b /src/Gui/CCMainWindow.py
parent4aa26f7373ccaadfd0a47198975afe6bbef5cd1d (diff)
downloadabrt-d4a40899c270d825ff5d602fcdd5941b3fd7bd77.tar.gz
abrt-d4a40899c270d825ff5d602fcdd5941b3fd7bd77.tar.xz
abrt-d4a40899c270d825ff5d602fcdd5941b3fd7bd77.zip
GUI: few improvements, to be more userfriendly
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r--src/Gui/CCMainWindow.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 7ae3177..e96db2b 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -42,7 +42,7 @@ class MainWindow():
self.wTree = gtk.glade.XML(self.gladefile)
#Get the Main Window, and connect the "destroy" event
- self.window = self.wTree.get_widget("main_window2")
+ self.window = self.wTree.get_widget("main_window3")
self.window.set_default_size(700, 480)
if (self.window):
self.window.connect("delete_event", self.delete_event_cb)
@@ -203,6 +203,16 @@ class MainWindow():
# this should work until we keep the row object in the last position
dump = dumpsListStore.get_value(dumpsListStore.get_iter(path[0]), dumpsListStore.get_n_columns()-1)
#move this to Dump class
+ if dump.isReported():
+ report_label = "<b>This crash has been reported, you can find the report(s) at:</b>\n"
+ for message in dump.getMessage().split('\n'):
+ if message:
+ if "http" in message or "file:///" in message:
+ message = "<a href=\"%s\">%s</a>" % (message, message)
+ report_label += "%s\n" % message
+ self.wTree.get_widget("lReported").set_markup(report_label)
+ else:
+ self.wTree.get_widget("lReported").set_markup("<b>Not reported!</b>")
lPackage = self.wTree.get_widget("lPackage")
self.wTree.get_widget("lDescription").set_label(dump.getDescription())