From 117d1b76c48d6191841ab63efdb1253830543ad1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 27 Aug 2008 17:53:34 +0000 Subject: (create_widget) workaround infamous 6 years old gnome bug #101968 (bad label wrapping) --- perl-install/interactive/gtk.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index ae07ff4e7..b4185baf8 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -386,7 +386,8 @@ sub create_widget { $set = sub { $w->set_active($_[0]) }; } elsif ($e->{type} eq 'only_label') { $w = $e->{title} ? - gtknew('Title2', label => escape_text_for_TextView_markup_format(${$e->{val}})) : + gtknew('Title2', label => escape_text_for_TextView_markup_format(${$e->{val}}), + width => mygtk2::get_label_width()) : gtknew('Label_Left', line_wrap => 1, text_markup => ${$e->{val}}); } elsif ($e->{type} eq 'label') { $w = gtknew('WrappedLabel', text_markup => ${$e->{val}}); -- cgit v1.2.1