summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-03-13 14:27:11 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-03-13 14:27:11 +0100
commit1cecc6df2c3092a797f8001e0052c12d873815c9 (patch)
tree2959e9b46494b273b4d6e8e9d9aa8c5342365935 /src
parentdb5bbea30bbdf1ad91efc6839f3b252266e277b8 (diff)
downloadabrt-1cecc6df2c3092a797f8001e0052c12d873815c9.tar.gz
abrt-1cecc6df2c3092a797f8001e0052c12d873815c9.tar.xz
abrt-1cecc6df2c3092a797f8001e0052c12d873815c9.zip
GUI: minor fixes in reporter dialog
- hopefully better text for buttons in "wrong settings dialog" - don't continue with reporting when user press ESC in wrong settings dialog
Diffstat (limited to 'src')
-rw-r--r--src/Gui/CCReporterDialog.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py
index c7c71ba6..f97c0785 100644
--- a/src/Gui/CCReporterDialog.py
+++ b/src/Gui/CCReporterDialog.py
@@ -3,14 +3,12 @@ import pygtk
pygtk.require("2.0")
import gtk
import gobject
-import gtk.glade
import sys
from CC_gui_functions import *
import CellRenderers
from ABRTPlugin import PluginInfo
from PluginSettingsUI import PluginSettingsUI
from PluginList import getPluginInfoList
-#from CCDumpList import getDumpList, DumpList
from CCDump import * # FILENAME_xxx, CD_xxx
from abrt_utils import _, log, log1, log2, get_verbose_level, g_verbose
@@ -179,7 +177,7 @@ class ReporterDialog():
image.destroy()
button.set_sensitive(False)
elif response == gtk.RESPONSE_CANCEL:
- print "cancel"
+ log1("cancel")
ui.destroy()
def check_settings(self, daemon):
@@ -201,7 +199,7 @@ class ReporterDialog():
hbox.set_spacing(6)
image = gtk.Image()
image.set_from_stock(gtk.STOCK_CANCEL, gtk.ICON_SIZE_MENU)
- button = gtk.Button(plugin.getName())
+ button = gtk.Button(_("Configure %s options" % plugin.getName()))
button.connect("clicked", self.on_config_plugin_clicked, plugin, image)
hbox.pack_start(button)
hbox.pack_start(image, expand = False, fill = False)
@@ -211,12 +209,9 @@ class ReporterDialog():
dialog.set_modal(True)
response = dialog.run()
dialog.destroy()
- if response == gtk.RESPONSE_NO:
+ if response != gtk.RESPONSE_YES:
# user cancelled reporting
return False
- if response == gtk.RESPONSE_YES:
- # "user wants to proceed with report"
- return True
return True
def set_label(self, label_widget, text):