From 5dc43e9595943ab5a1e8045ced5f6040f94e1180 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 26 Feb 2009 16:28:57 +0100 Subject: Fixed cancel button in reporter --- src/Gui/CCDump.py | 1 + src/Gui/CCDumpList.py | 2 +- src/Gui/CCMainWindow.py | 3 +- src/Gui/CCReporterDialog.py | 13 ++---- src/Gui/ccgui.glade | 100 ++++++++++++++++++++++---------------------- 5 files changed, 58 insertions(+), 61 deletions(-) (limited to 'src') diff --git a/src/Gui/CCDump.py b/src/Gui/CCDump.py index 87474e9..5e2e651 100644 --- a/src/Gui/CCDump.py +++ b/src/Gui/CCDump.py @@ -9,6 +9,7 @@ class Dump(): self.Executable = None self.Package = None self.Time = None + self.Description = None def getUUID(self): return self.UUID diff --git a/src/Gui/CCDumpList.py b/src/Gui/CCDumpList.py index 25e12af..5aaae92 100644 --- a/src/Gui/CCDumpList.py +++ b/src/Gui/CCDumpList.py @@ -8,7 +8,7 @@ class DumpList(list): def load(self): if self.dm: - print "loading DumpList" + #print "loading DumpList" try: rows = self.dm.getDumps() #print rows diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index 0cbd03e..ab2e171 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -130,6 +130,7 @@ class MainWindow(): report = self.ccdaemon.getReport(dump.getUUID()) except Exception,e: # FIXME #3 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply + # do this async and wait for yum to end with debuginfoinstal gui_error_message("Operation taking too long - \nPlease try again after debuginfo is installed") return @@ -138,7 +139,7 @@ class MainWindow(): return report_dialog = ReporterDialog(report) result = report_dialog.run() - if result == -1: + if result == gtk.RESPONSE_CANCEL: pass else: self.ccdaemon.Report(result) diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index f9bb493..2affead 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -39,8 +39,8 @@ class ReporterDialog(): renderer.connect('edited',self.column_edited,self.reportListStore) # connect the signals - self.wTree.get_widget("bApply").connect("clicked", self.on_apply_clicked, self.tvReport) - self.wTree.get_widget("bCancel").connect("clicked", self.on_cancel_clicked, self.tvReport) + #self.wTree.get_widget("bApply").connect("clicked", self.on_apply_clicked, self.tvReport) + #self.wTree.get_widget("bCancel").connect("clicked", self.on_cancel_clicked, self.tvReport) self.hydrate() @@ -50,15 +50,10 @@ class ReporterDialog(): return def on_apply_clicked(self, button, treeview): - #print treeview - #self.window.destroy(); - print self.report - return self.report + pass def on_cancel_clicked(self, button, treeview): - #print treeview - #self.window.destroy(); - return gtk.RESPONSE_CANCEL + pass def hydrate(self): editable = ["Comment", "TextData1", "TextData2"] diff --git a/src/Gui/ccgui.glade b/src/Gui/ccgui.glade index fadb605..b2f2ea2 100644 --- a/src/Gui/ccgui.glade +++ b/src/Gui/ccgui.glade @@ -1,6 +1,6 @@ - + 640 @@ -396,7 +396,7 @@ True gtk-apply True - 0 + -10 @@ -406,7 +406,7 @@ True gtk-cancel True - 0 + -6 1 @@ -458,53 +458,6 @@ - - - True - BlackList - - - - - True - True - - - 1 - 2 - - - - - True - Database Plugin - - - 1 - 2 - - - - - True - - - 1 - 2 - 1 - 2 - - - - - True - OpenPGP Public Keys - - - 2 - 3 - - True @@ -553,6 +506,53 @@ 3 + + + True + OpenPGP Public Keys + + + 2 + 3 + + + + + True + + + 1 + 2 + 1 + 2 + + + + + True + Database Plugin + + + 1 + 2 + + + + + True + True + + + 1 + 2 + + + + + True + BlackList + + -- cgit