From b0c6eeac8d1f131aaba5beb6842e88384d2f1aed Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 30 Aug 2005 16:23:14 +0000 Subject: add children_centered (was already children_tight, children_loose and children) --- perl-install/mygtk2.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index ad19700b3..8abaf1046 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -643,7 +643,10 @@ sub _gtknew_handle_children { my @child = exists $opts->{children_tight} ? map { [ 0, $_ ] } @{delete $opts->{children_tight}} : exists $opts->{children_loose} ? map { [ 1, $_ ] } @{delete $opts->{children_loose}} : - exists $opts->{children} ? group_by2(@{delete $opts->{children}}) : (); + exists $opts->{children} ? group_by2(@{delete $opts->{children}}) : + exists $opts->{children_centered} ? + ([ 1, gtknew('VBox') ], (map { [ 0, $_ ] } @{delete $opts->{children_centered}}), [ 1, gtknew('VBox') ]) : + (); my $padding = delete $opts->{padding}; -- cgit v1.2.1