summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/my_gtk.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 840cdaafb..1d24ab95a 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -347,11 +347,11 @@ sub create_okcancel {
sub create_box_with_title($@) {
my $o = shift;
- my $nb_lines = map { split "\n" } @_;
+ $o->{box_size} = map { split "\n" } @_;
$o->{box} = new Gtk::VBox(0,0);
- if (@_ <= 2 && $nb_lines > 4) {
+ if (@_ <= 2 && $o->{box_size} > 4) {
my $font = $o->{box}->style->font;
- my $wanted = $nb_lines * ($font->ascent + $font->descent) + 7;
+ my $wanted = $o->{box_size} * ($font->ascent + $font->descent) + 7;
my $height = min(250, $wanted);
my $has_scroll = $height < $wanted;