diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-28 13:48:35 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-28 13:48:35 +0000 |
commit | 9378c8244c2a02b4f01ad169d1c4c7fcbade42e1 (patch) | |
tree | 88fd966ce64a1cf14681e6b5429c3266f28d9899 /perl-install/ugtk2.pm | |
parent | 989fa53616aae3a8b8d526f21ab14ec6c8edb7c8 (diff) | |
download | drakx-9378c8244c2a02b4f01ad169d1c4c7fcbade42e1.tar drakx-9378c8244c2a02b4f01ad169d1c4c7fcbade42e1.tar.gz drakx-9378c8244c2a02b4f01ad169d1c4c7fcbade42e1.tar.bz2 drakx-9378c8244c2a02b4f01ad169d1c4c7fcbade42e1.tar.xz drakx-9378c8244c2a02b4f01ad169d1c4c7fcbade42e1.zip |
hugly hack because GtkLabel doesn't wrap when using languages that don't contain spaces
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index f0645a905..4764841c4 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -319,7 +319,8 @@ sub create_box_with_title { return $box; } $o->{box_size} = n_line_size($nbline, 'text', $box); - if (@_ <= 2 && ($nbline > 4 || $o->{box_size} > 100)) { + #- hugly hack because GtkLabel doesn't wrap when using languages that don't contain spaces + if (@_ <= 2 && ($nbline > 4 || ($nbline > 1 && ref $::o && member($::o->{locale}{lang}, qw(ja))))) { $o->{icon} && !$::isWizard and eval { gtkpack__($box, gtkset_border_width(gtkpack_(Gtk2::HBox->new(0,0), 1, gtkcreate_img($o->{icon})),5)) }; my $wanted = $o->{box_size}; |