diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-22 13:11:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-22 13:11:58 +0000 |
commit | a355859ef5e310f497853b17f514c89df1e2a637 (patch) | |
tree | ef051ceb69560979a9e1ad1f88abad906fa83600 /perl-install | |
parent | 820f0817e6936790511d37405ebff6766be47be9 (diff) | |
download | drakx-a355859ef5e310f497853b17f514c89df1e2a637.tar drakx-a355859ef5e310f497853b17f514c89df1e2a637.tar.gz drakx-a355859ef5e310f497853b17f514c89df1e2a637.tar.bz2 drakx-a355859ef5e310f497853b17f514c89df1e2a637.tar.xz drakx-a355859ef5e310f497853b17f514c89df1e2a637.zip |
(create_widgets_block) add support for new 'do_not_expand' parameter
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/interactive.pm | 1 | ||||
-rw-r--r-- | perl-install/interactive/gtk.pm | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 0fc9a4b55..529d5b29a 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -45,6 +45,7 @@ use do_pkgs; #- validate => function called when "Ok" is pressed. If it returns false, this entry is focused, otherwise it quits #- disabled => function returning wether it should be disabled (grayed) #- focus => function returning wether it should be focused +#- do_not_expand => do not eat all horizontal space #- gtk => gtk preferences #- type => #- button => (with clicked or clicked_may_quit) 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), |