[GNOME-ABRT PATCH] Use wrapped text for the bug report link
Jakub Filak
jfilak at redhat.com
Tue Aug 6 14:59:51 UTC 2013
Closes rhbz#977473
Signe-off-by: Jakub Filak <jfilak at edhat.com>
---
src/gnome_abrt/views.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gnome_abrt/views.py b/src/gnome_abrt/views.py
index 0e8942e..edc5a92 100644
--- a/src/gnome_abrt/views.py
+++ b/src/gnome_abrt/views.py
@@ -550,6 +550,14 @@ class OopsWindow(Gtk.ApplicationWindow):
lnk.set_visible(True)
lnk.set_halign(Gtk.Align.START)
lnk.set_valign(Gtk.Align.START)
+ lnk_lbl = lnk.get_child()
+ # using hasattr() because this constructions abuses a knowledge
+ # of current Gtk.LinkButton implementation details
+ # works fine with gtk-3.8.2
+ # in a future version of gtk, the child will not necessarily
+ # be an instance of Gtk.Label
+ if hasattr(lnk_lbl, "set_line_wrap"):
+ lnk_lbl.set_line_wrap(True)
self._builder.vbx_links.pack_start(lnk, False, True, 0)
need_align = True
--
1.8.3.1
More information about the Crash-catcher
mailing list