diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-25 22:44:31 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-25 22:44:31 +0100 |
commit | 9b0c3d8a1b5e74e9499175e8ddc6a306c7333455 (patch) | |
tree | 141297d815050ad1a085455712ee4d25f3ac3b41 /src/Gui/CCReporterDialog.py | |
parent | 58988f7f1ac7e5ac5f65b82c3a182cffa58e5433 (diff) | |
download | abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.tar.gz abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.tar.xz abrt-9b0c3d8a1b5e74e9499175e8ddc6a306c7333455.zip |
More rpm fixes
Diffstat (limited to 'src/Gui/CCReporterDialog.py')
-rw-r--r-- | src/Gui/CCReporterDialog.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index c186de17..f9bb493f 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -13,7 +13,7 @@ class ReporterDialog(): self.report = report #Set the Glade file # FIXME add to path - self.gladefile = "../share/crash-catcher/ccgui.glade" + self.gladefile = "/usr/share/crash-catcher/ccgui.glade" self.wTree = gtk.glade.XML(self.gladefile) #Get the Main Window, and connect the "destroy" event self.window = self.wTree.get_widget("reporter_dialog") @@ -58,18 +58,19 @@ class ReporterDialog(): def on_cancel_clicked(self, button, treeview): #print treeview #self.window.destroy(); - return -1 + return gtk.RESPONSE_CANCEL def hydrate(self): + editable = ["Comment", "TextData1", "TextData2"] for item in self.report: - self.reportListStore.append([item, self.report[item], False]) - self.reportListStore.append(["Comment","", True]) + self.reportListStore.append([item, self.report[item], item in editable]) + #self.reportListStore.append(["Comment","", True]) def run(self): result = self.window.run() - if result == -1: + if result == gtk.RESPONSE_CANCEL: self.window.destroy() - return -1 + return result else: self.window.destroy() return self.report |