summaryrefslogtreecommitdiffstats
path: root/src/Gui/CC_gui_functions.py
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-12-14 10:41:51 +0100
committerKarel Klic <kklic@redhat.com>2009-12-14 10:41:51 +0100
commita24d2906c51e3740e6e0acf8f0093827b4e35bc3 (patch)
tree1022bf70766a88d45dc71d6ea413ccd0fa14d07c /src/Gui/CC_gui_functions.py
parentb7ea0e53e3375de6298b2f510302f75ebef4be4e (diff)
parent42f0375d09931903965b36c87f17f805def956bf (diff)
downloadabrt-a24d2906c51e3740e6e0acf8f0093827b4e35bc3.tar.gz
abrt-a24d2906c51e3740e6e0acf8f0093827b4e35bc3.tar.xz
abrt-a24d2906c51e3740e6e0acf8f0093827b4e35bc3.zip
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Gui/CC_gui_functions.py')
-rw-r--r--src/Gui/CC_gui_functions.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Gui/CC_gui_functions.py b/src/Gui/CC_gui_functions.py
index 511e4bce..0532ab79 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
@@ -207,6 +210,26 @@ def get_icon_for_package(theme,package):
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()
+
if __name__ == "__main__":
window = gtk.Window()
gui_report_dialog("<b>Bugzilla</b>: <span foreground='red'>CReporterBugzilla::Report(): CReporterBugzilla::Login(): RPC response indicates failure. The username or password you entered is not valid.</span>\n<b>Logger</b>: Report was stored into: /var/log/abrt-logger", window)