summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-20 01:13:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-20 01:13:50 +0000
commit5f570aeb6249771697e3843b2096d13e80584247 (patch)
treea1d9e43745f394f3445f3b526526481587a2e40c /perl-install
parent7a21da20c34db394abcde18f08d106edc47ae8c2 (diff)
downloaddrakx-5f570aeb6249771697e3843b2096d13e80584247.tar
drakx-5f570aeb6249771697e3843b2096d13e80584247.tar.gz
drakx-5f570aeb6249771697e3843b2096d13e80584247.tar.bz2
drakx-5f570aeb6249771697e3843b2096d13e80584247.tar.xz
drakx-5f570aeb6249771697e3843b2096d13e80584247.zip
ensure {box_size} is set (to have less warnings)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index e1a0f11d3..702805d26 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -314,8 +314,10 @@ sub create_box_with_title {
my $nbline = sum(map { round(length($_) / 60 + 1/2) } map { split "\n" } @_);
my $box = Gtk2::VBox->new(0,0);
- return $box if $nbline == 0;
-
+ if ($nbline == 0) {
+ $o->{box_size} = 0;
+ return $box;
+ }
$o->{box_size} = n_line_size($nbline, 'text', $box);
if (@_ <= 2 && $nbline > 4) {
$o->{icon} && !$::isWizard and