diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-03-27 17:41:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-03-27 17:41:22 +0000 |
commit | 5c670730e8ed0c617a18e06c707b580d2a7c91ff (patch) | |
tree | 819c224a0a1cfccd08405b17f940d7595217e928 /perl-install/my_gtk.pm | |
parent | e3567ea38e9ca5623bcd88d29380ecbb4a9a1bfa (diff) | |
download | drakx-backup-do-not-use-5c670730e8ed0c617a18e06c707b580d2a7c91ff.tar drakx-backup-do-not-use-5c670730e8ed0c617a18e06c707b580d2a7c91ff.tar.gz drakx-backup-do-not-use-5c670730e8ed0c617a18e06c707b580d2a7c91ff.tar.bz2 drakx-backup-do-not-use-5c670730e8ed0c617a18e06c707b580d2a7c91ff.tar.xz drakx-backup-do-not-use-5c670730e8ed0c617a18e06c707b580d2a7c91ff.zip |
try to fix displaying in draksec
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 1d24ab95a..9de8d0bb5 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -347,7 +347,7 @@ sub create_okcancel { sub create_box_with_title($@) { my $o = shift; - $o->{box_size} = map { split "\n" } @_; + $o->{box_size} = sum(map { round(length($_) / 60 + 0.5) } map { split "\n" } @_); $o->{box} = new Gtk::VBox(0,0); if (@_ <= 2 && $o->{box_size} > 4) { my $font = $o->{box}->style->font; |