summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-15 22:33:23 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-15 22:33:23 +0000
commit95a9fedd5353b8b0de76b1d6b57af650112e02ff (patch)
tree15427de528613809600ac111f9fe137841c683c4 /perl-install/interactive
parentb5885918d5abf8314a0c717012aeea04f6029ed1 (diff)
downloaddrakx-backup-do-not-use-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar
drakx-backup-do-not-use-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar.gz
drakx-backup-do-not-use-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar.bz2
drakx-backup-do-not-use-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar.xz
drakx-backup-do-not-use-95a9fedd5353b8b0de76b1d6b57af650112e02ff.zip
(create_widget) size all labelss (workaround infamous 6 years old
gnome bug #101968) (eg: in advanced language selection)
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index ee10ba5ee..929083396 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -397,11 +397,13 @@ sub create_widget {
$set = sub { $w->set_active($_[0]) };
$real_w = add_padding($w);
} elsif ($e->{type} eq 'only_label') {
+ my @common = (
+ # workaround infamous 6 years old gnome bug #101968:
+ if_($e->{alignment} ne 'right', width => mygtk2::get_label_width())
+ );
$w = $e->{title} ?
- gtknew('Title2', label => escape_text_for_TextView_markup_format(${$e->{val}}),
- # workaround infamous 6 years old gnome bug #101968:
- if_($e->{alignment} ne 'right', width => mygtk2::get_label_width())) :
- gtknew('Label_Left', line_wrap => 1, text_markup => ${$e->{val}});
+ gtknew('Title2', label => escape_text_for_TextView_markup_format(${$e->{val}}), @common) :
+ gtknew('Label_Left', line_wrap => 1, text_markup => ${$e->{val}}, @common);
} elsif ($e->{type} eq 'label') {
$w = gtknew('WrappedLabel', text_markup => ${$e->{val}});
$set = sub { $w->set($_[0]) };