summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-26 16:28:57 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-26 16:28:57 +0100
commit5dc43e9595943ab5a1e8045ced5f6040f94e1180 (patch)
tree126cd68521721248d2abfe869e2423061473ea9f
parent21cee04d315e4b05603c73fc46ccec85770a6de7 (diff)
downloadabrt-5dc43e9595943ab5a1e8045ced5f6040f94e1180.tar.gz
abrt-5dc43e9595943ab5a1e8045ced5f6040f94e1180.tar.xz
abrt-5dc43e9595943ab5a1e8045ced5f6040f94e1180.zip
Fixed cancel button in reporter
-rw-r--r--src/Gui/CCDump.py1
-rw-r--r--src/Gui/CCDumpList.py2
-rw-r--r--src/Gui/CCMainWindow.py3
-rw-r--r--src/Gui/CCReporterDialog.py13
-rw-r--r--src/Gui/ccgui.glade100
5 files changed, 58 insertions, 61 deletions
diff --git a/src/Gui/CCDump.py b/src/Gui/CCDump.py
index 87474e9e..5e2e6517 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 25e12afa..5aaae923 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 0cbd03ee..ab2e171d 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 f9bb493f..2affeadd 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 fadb605a..b2f2ea2a 100644
--- a/src/Gui/ccgui.glade
+++ b/src/Gui/ccgui.glade
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Tue Feb 24 14:18:21 2009 -->
+<!--Generated with glade3 3.4.5 on Thu Feb 26 16:15:05 2009 -->
<glade-interface>
<widget class="GtkWindow" id="main_window">
<property name="default_width">640</property>
@@ -396,7 +396,7 @@
<property name="receives_default">True</property>
<property name="label" translatable="yes">gtk-apply</property>
<property name="use_stock">True</property>
- <property name="response_id">0</property>
+ <property name="response_id">-10</property>
</widget>
</child>
<child>
@@ -406,7 +406,7 @@
<property name="receives_default">True</property>
<property name="label" translatable="yes">gtk-cancel</property>
<property name="use_stock">True</property>
- <property name="response_id">0</property>
+ <property name="response_id">-6</property>
</widget>
<packing>
<property name="position">1</property>
@@ -459,53 +459,6 @@
<placeholder/>
</child>
<child>
- <widget class="GtkLabel" id="label14">
- <property name="visible">True</property>
- <property name="label" translatable="yes">BlackList</property>
- </widget>
- </child>
- <child>
- <widget class="GtkEntry" id="entry1">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label15">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Database Plugin</property>
- </widget>
- <packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkComboBox" id="combobox1">
- <property name="visible">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label16">
- <property name="visible">True</property>
- <property name="label" translatable="yes">OpenPGP Public Keys</property>
- </widget>
- <packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
<widget class="GtkHBox" id="hbox7">
<property name="visible">True</property>
<child>
@@ -553,6 +506,53 @@
<property name="bottom_attach">3</property>
</packing>
</child>
+ <child>
+ <widget class="GtkLabel" id="label16">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">OpenPGP Public Keys</property>
+ </widget>
+ <packing>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkComboBox" id="combobox1">
+ <property name="visible">True</property>
+ </widget>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label15">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Database Plugin</property>
+ </widget>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkEntry" id="entry1">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </widget>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label14">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">BlackList</property>
+ </widget>
+ </child>
</widget>
</child>
<child>