From a355859ef5e310f497853b17f514c89df1e2a637 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 22 Aug 2008 13:11:58 +0000 Subject: (create_widgets_block) add support for new 'do_not_expand' parameter --- perl-install/interactive/gtk.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'perl-install/interactive/gtk.pm') diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 763f7897a..f3240474b 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -615,6 +615,13 @@ sub create_widgets_block { size_group => $label_sizegrp, alignment => [ 0, 0.5 ]); } + if ($e->{do_not_expand}) { + $e->{real_w} = gtknew('HBox', children => [ + 0, $e->{real_w}, + 1, gtknew('Label'), + ]); + } + $e->{real_w} = gtkpack_(Gtk2::HBox->new, if_($e->{icon}, 0, eval { gtkcreate_img($e->{icon}) }), if_($label_w, 0, $label_w), -- cgit v1.2.1