From b3bcaf1ff8368837c40a213d4e6a5487aa727ce1 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 20 Feb 2003 11:57:57 +0000 Subject: try to handle case with large fonts (CJK for example) -> branch on TextView when the box will be quite large --- perl-install/ugtk2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 702805d26..983e670bd 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -319,7 +319,7 @@ sub create_box_with_title { return $box; } $o->{box_size} = n_line_size($nbline, 'text', $box); - if (@_ <= 2 && $nbline > 4) { + if (@_ <= 2 && ($nbline > 4 || $o->{box_size} > 100)) { $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}; -- cgit v1.2.1