summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-27 16:18:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-27 16:18:02 +0000
commit764afd8a582e53c536045b8cf24f4ee2ba4f4ed7 (patch)
tree878d94173b7fd726f1254ecd99ef2aad3d4b906b
parent7a8ccc6f0c68d0c1e345fa9e346122a9ba333c0a (diff)
downloaddrakx-764afd8a582e53c536045b8cf24f4ee2ba4f4ed7.tar
drakx-764afd8a582e53c536045b8cf24f4ee2ba4f4ed7.tar.gz
drakx-764afd8a582e53c536045b8cf24f4ee2ba4f4ed7.tar.bz2
drakx-764afd8a582e53c536045b8cf24f4ee2ba4f4ed7.tar.xz
drakx-764afd8a582e53c536045b8cf24f4ee2ba4f4ed7.zip
(create_box_with_title): save the box_size in field "box_size"
-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;