From c6cfcc792147083ab41eb990f8ee4e3150cd5d75 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Dec 2009 19:48:19 +0100 Subject: Gui: make report status window's text wrap. Fixes bug 82 See https://fedorahosted.org/abrt/ticket/82 Signed-off-by: Denys Vlasenko --- src/Gui/CCReporterDialog.py | 2 +- src/Gui/CC_gui_functions.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index 746c45c..219512e 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -96,7 +96,7 @@ class ReporterDialog(): # this callback is called when user press Cancel or Report button in Report dialog def on_response(self, dialog, response_id, daemon): # the button has been pressed (probably) - print "response_id", response_id + # print "response_id", response_id if response_id == gtk.RESPONSE_APPLY: if not (self.check_settings(daemon) and self.check_report()): dialog.stop_emission("response") diff --git a/src/Gui/CC_gui_functions.py b/src/Gui/CC_gui_functions.py index dfed224..0532ab7 100644 --- a/src/Gui/CC_gui_functions.py +++ b/src/Gui/CC_gui_functions.py @@ -45,9 +45,12 @@ def gui_report_dialog ( report_status_dict, parent_dialog, plugin_label = Label() plugin_label.set_markup("%s: " % plugin) plugin_label.set_justify(gtk.JUSTIFY_RIGHT) + plugin_label.set_alignment(0, 0) status_label = Label() status_label.set_max_width_chars(MAX_WIDTH) status_label.set_selectable(True) + status_label.set_line_wrap(True) + status_label.set_alignment(0, 0) status_hbox.pack_start(plugin_label, expand=False) status_hbox.pack_start(status_label, expand=False) # 0 means not succesfull -- cgit