summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-03-11 19:34:03 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-03-11 19:34:03 +0100
commit0943d6b8e8f44935a529a01acb6b18c3caf279a2 (patch)
treee404512ced869ea10698bf493cb81faf38148a2b /src
parentec9627284e217b1d2522f4eb3e545a6589084dba (diff)
downloadabrt-0943d6b8e8f44935a529a01acb6b18c3caf279a2.tar.gz
abrt-0943d6b8e8f44935a529a01acb6b18c3caf279a2.tar.xz
abrt-0943d6b8e8f44935a529a01acb6b18c3caf279a2.zip
GUI: minor report dialog fixes
- added button tooltips - made "I checked ..." text red, so it's more visible
Diffstat (limited to 'src')
-rw-r--r--src/Gui/CCReporterDialog.py12
-rw-r--r--src/Gui/report.glade2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py
index a1845345..c7c71ba6 100644
--- a/src/Gui/CCReporterDialog.py
+++ b/src/Gui/CCReporterDialog.py
@@ -61,7 +61,13 @@ class ReporterDialog():
bLog.connect("clicked", self.show_log_cb, log)
else:
bLog.unset_flags(gtk.VISIBLE)
- self.builder.get_object("cbSendBacktrace").connect("toggled", self.on_send_backtrace_toggled)
+ tb_send_bt = self.builder.get_object("cbSendBacktrace")
+ tb_send_bt.connect("toggled", self.on_send_backtrace_toggled)
+ try:
+ tb_send_bt.get_child().modify_fg(gtk.STATE_NORMAL,gtk.gdk.color_parse("red"))
+ except Exception, ex:
+ # we don't want gui to die if it fails to set the button color
+ log(ex)
self.allow_send()
self.hydrate()
@@ -122,6 +128,10 @@ class ReporterDialog():
if error_msgs:
self.warn_user(error_msgs)
bSend.set_sensitive(send)
+ if not send:
+ bSend.set_tooltip_text(_("Reporting disabled, please fix the the problems shown above."))
+ else:
+ bSend.set_tooltip_text(_("Sends the report using selected plugin."))
def on_send_backtrace_toggled(self, toggle_button):
self.allow_send()
diff --git a/src/Gui/report.glade b/src/Gui/report.glade
index ba07d50f..6d4212c9 100644
--- a/src/Gui/report.glade
+++ b/src/Gui/report.glade
@@ -333,6 +333,7 @@
</object>
<packing>
<property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
@@ -629,6 +630,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Forces ABRT to regenerate the backtrace</property>
<property name="use_stock">True</property>
</object>
<packing>