diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-22 14:07:47 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-22 14:07:47 +0100 |
| commit | acf39a3b05f4a72dbcc34942f8dc77b9856c230b (patch) | |
| tree | 941c8c5a4e6147dc6d5f5421657e705a67237a62 /src | |
| parent | ce57d1299f6dadecb36c597e35c00de79d00c5f4 (diff) | |
| parent | eec9317720482bd5a12b3fdcbb64ace9eb73afb5 (diff) | |
| download | abrt-acf39a3b05f4a72dbcc34942f8dc77b9856c230b.tar.gz abrt-acf39a3b05f4a72dbcc34942f8dc77b9856c230b.tar.xz abrt-acf39a3b05f4a72dbcc34942f8dc77b9856c230b.zip | |
Merge branch 'master' into rhel6
Diffstat (limited to 'src')
| -rw-r--r-- | src/Gui/CCReporterDialog.py | 14 | ||||
| -rw-r--r-- | src/Gui/CC_gui_functions.py | 12 |
2 files changed, 15 insertions, 11 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index 023cc6e..3884106 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -20,6 +20,10 @@ from abrt_utils import _, log, log1, log2 REFRESH = -50 SHOW_LOG = -60 +# default texts +COMMENT_HINT_TEXT = _("Brief description how to reproduce this or what you did...") +HOW_TO_HINT_TEXT = "1.\n2.\n3.\n" + class ReporterDialog(): """Reporter window""" def __init__(self, report, daemon, log=None, parent=None): @@ -202,8 +206,8 @@ class ReporterDialog(): def hydrate(self): self.editable = [] - self.old_comment = "" - self.old_how_to_reproduce = "" + self.old_comment = COMMENT_HINT_TEXT + self.old_how_to_reproduce = HOW_TO_HINT_TEXT for item in self.report: try: log2("report[%s]:%s/%s/%s", item, self.report[item][0], self.report[item][1], self.report[item][2][0:20]) @@ -261,16 +265,16 @@ class ReporterDialog(): #end for buff = gtk.TextBuffer() - self.show_hint_comment = (self.old_comment == "") + self.show_hint_comment = (self.old_comment == COMMENT_HINT_TEXT) if self.show_hint_comment: - buff.set_text(_("Brief description how to reproduce this or what you did...")) + buff.set_text(COMMENT_HINT_TEXT) else: buff.set_text(self.old_comment) self.tvComment.set_buffer(buff) buff = gtk.TextBuffer() if self.old_how_to_reproduce == "": - buff.set_text("1.\n2.\n3.\n") + buff.set_text(HOW_TO_HINT_TEXT) else: buff.set_text(self.old_how_to_reproduce) self.tevHowToReproduce.set_buffer(buff) diff --git a/src/Gui/CC_gui_functions.py b/src/Gui/CC_gui_functions.py index e226021..708a151 100644 --- a/src/Gui/CC_gui_functions.py +++ b/src/Gui/CC_gui_functions.py @@ -43,18 +43,18 @@ def gui_report_dialog ( report_status_dict, parent_dialog, message = "" status_vbox = gtk.VBox() for plugin, res in report_status_dict.iteritems(): - status_hbox = gtk.HBox() - plugin_label = Label() + plugin_status_vbox = gtk.VBox() + plugin_label = gtk.Label() plugin_label.set_markup("<b>%s</b>: " % plugin) plugin_label.set_justify(gtk.JUSTIFY_RIGHT) plugin_label.set_alignment(0, 0) - status_label = Label() + status_label = gtk.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) + plugin_status_vbox.pack_start(plugin_label, expand=False) + plugin_status_vbox.pack_start(status_label, expand=False) # 0 means not succesfull #if report_status_dict[plugin][0] == '0': # this first one is actually a fallback to set at least @@ -73,7 +73,7 @@ def gui_report_dialog ( report_status_dict, parent_dialog, status_label.set_text("%s" % report_status_dict[plugin][1]) if len(report_status_dict[plugin][1]) > MAX_WIDTH: status_label.set_tooltip_text(report_status_dict[plugin][1]) - status_vbox.pack_start(status_hbox, expand=False) + status_vbox.pack_start(plugin_status_vbox, expand=False) main_hbox.pack_start(status_vbox) if widget != None: |
