diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-27 13:42:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-27 13:42:13 +0000 |
commit | 981d35eb8ed1922a5d90bbe8e055d912ac51bc36 (patch) | |
tree | c2619caadd5b796126086f4e7389e79841ba3ab5 | |
parent | 19f8f6f9968343c363a2d3a1ded89af9d177311a (diff) | |
download | drakx-981d35eb8ed1922a5d90bbe8e055d912ac51bc36.tar drakx-981d35eb8ed1922a5d90bbe8e055d912ac51bc36.tar.gz drakx-981d35eb8ed1922a5d90bbe8e055d912ac51bc36.tar.bz2 drakx-981d35eb8ed1922a5d90bbe8e055d912ac51bc36.tar.xz drakx-981d35eb8ed1922a5d90bbe8e055d912ac51bc36.zip |
(create_packtable) enable to provide 0 parameters for xpadding and
ypadding (much cleaner)
-rw-r--r-- | perl-install/ugtk2.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 5549346a6..92a9411f0 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -457,6 +457,7 @@ sub create_notebook { sub create_packtable { my ($options, @l) = @_; my $w = Gtk2::Table->new(0, 0, $options->{homogeneous} || 0); + add2hash_($options, { xpadding => 5, ypadding => 0 }); each_index { my ($i, $l) = ($::i, $_); each_index { @@ -465,7 +466,7 @@ sub create_packtable { ref $_ or $_ = Gtk2::Label->new($_); $j != $#$l && !$options->{mcc} ? $w->attach($_, $j, $j + 1, $i, $i + 1, - 'fill', 'fill', $options->{xpadding} || 5, $options->{ypadding} || 0) : + 'fill', 'fill', $options->{xpadding}, $options->{ypadding}) : $w->attach($_, $j, $j + 1, $i, $i + 1, ['expand', 'fill'], ref($_) eq 'Gtk2::ScrolledWindow' || $_->get_data('must_grow') ? ['expand', 'fill'] : [], 0, 0); $_->show; |