summaryrefslogtreecommitdiffstats
path: root/perl-install
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
parentb5885918d5abf8314a0c717012aeea04f6029ed1 (diff)
downloaddrakx-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar
drakx-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar.gz
drakx-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar.bz2
drakx-95a9fedd5353b8b0de76b1d6b57af650112e02ff.tar.xz
drakx-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')
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/interactive/gtk.pm10
2 files changed, 8 insertions, 4 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 66836fe84..3f75c0c0a 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -6,6 +6,8 @@ Version 11.43 - 16 September 2008
(regression introduced on 2008-08-29)
- increase default window height b/c of package selection step
- refresh partitionning step
+- size most labels (workaround infamous 6 years old gnome bug #101968)
+ (eg: in advanced language selection)
- update icons for packages/services selection
Version 11.42 - 12 September 2008
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]) };