diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-10-05 11:49:41 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-10-05 11:49:41 +0200 |
| commit | a56b047e24bbf96879e77f51867b96d515cdbfa6 (patch) | |
| tree | 771db2b9aee034ad5641a3d3bc380ffa89ea3de2 /src/Gui/CC_gui_functions.py | |
| parent | 36b35cc468872de5f3e87a1cc9c3851f87523ac8 (diff) | |
| download | abrt-a56b047e24bbf96879e77f51867b96d515cdbfa6.tar.gz abrt-a56b047e24bbf96879e77f51867b96d515cdbfa6.tar.xz abrt-a56b047e24bbf96879e77f51867b96d515cdbfa6.zip | |
manual merge
Diffstat (limited to 'src/Gui/CC_gui_functions.py')
| -rw-r--r-- | src/Gui/CC_gui_functions.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Gui/CC_gui_functions.py b/src/Gui/CC_gui_functions.py index 3665d1b..2f86008 100644 --- a/src/Gui/CC_gui_functions.py +++ b/src/Gui/CC_gui_functions.py @@ -27,11 +27,13 @@ def on_url_clicked(label, url): def gui_report_dialog ( report_status_dict, parent_dialog, message_type=gtk.MESSAGE_INFO, widget=None, page=0, broken_widget=None ): + MAX_WIDTH = 50 builder = gtk.Builder() builderfile = "%s%sdialogs.glade" % (sys.path[0],"/") builder.add_from_file(builderfile) dialog = builder.get_object("ReportDialog") - + dialog.set_default_size(200, 50) + dialog.set_resizable(False) main_hbox = builder.get_object("main_hbox") STATUS = 0 @@ -44,6 +46,7 @@ def gui_report_dialog ( report_status_dict, parent_dialog, plugin_label.set_markup("<b>%s</b>: " % plugin) plugin_label.set_justify(gtk.JUSTIFY_RIGHT) status_label = Label() + status_label.set_max_width_chars(MAX_WIDTH) status_label.set_selectable(True) status_hbox.pack_start(plugin_label, expand=False) status_hbox.pack_start(status_label, expand=False) @@ -58,6 +61,8 @@ def gui_report_dialog ( report_status_dict, parent_dialog, status_label.connect(on_url_clicked_signal, on_url_clicked) else: 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) main_hbox.pack_start(status_vbox) |
