diff options
Diffstat (limited to 'src/Gui/CC_gui_functions.py')
| -rw-r--r-- | src/Gui/CC_gui_functions.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Gui/CC_gui_functions.py b/src/Gui/CC_gui_functions.py index ba895c6..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("<b>%s</b>: " % 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 @@ -206,24 +209,24 @@ def get_icon_for_package(theme,package): return gtk.gdk.pixbuf_new_from_file_at_size(icon_filename,22,22) else: return None - + def show_log(log, parent=None): builder = gtk.Builder() builderfile = "%s%sdialogs.glade" % (sys.path[0],"/") builder.add_from_file(builderfile) dialog = builder.get_object("LogViewer") tevLog = builder.get_object("tevLog") - + if parent: dialog.set_position (gtk.WIN_POS_CENTER_ON_PARENT) dialog.set_transient_for(parent) else: dialog.set_position (gtk.WIN_POS_CENTER) - + buff = gtk.TextBuffer() buff.set_text(log) tevLog.set_buffer(buff) - + dialog.run() dialog.destroy() |
