summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-18 15:33:45 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-18 15:33:45 +0000
commit71afbec0cd47ff7e589a1f386f4adc477d48bd09 (patch)
tree8b49d01e83cee97b2492ffffbbcb8dab29c498ea /perl-install/interactive
parent4e9007ae592899e6bfbece930ac4b4fb4ddef4bc (diff)
downloaddrakx-71afbec0cd47ff7e589a1f386f4adc477d48bd09.tar
drakx-71afbec0cd47ff7e589a1f386f4adc477d48bd09.tar.gz
drakx-71afbec0cd47ff7e589a1f386f4adc477d48bd09.tar.bz2
drakx-71afbec0cd47ff7e589a1f386f4adc477d48bd09.tar.xz
drakx-71afbec0cd47ff7e589a1f386f4adc477d48bd09.zip
(create_widget) popup advanced settings in dialogs
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 94e941448..e3cfce740 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -409,7 +409,15 @@ sub create_widget {
$e->{grow} = 'fill';
my $children = [ if_($e->{message}, { type => 'only_label', no_indent => 1, val => \$e->{message} }), @{$e->{children}} ];
my $box = create_widgets_block($o, $children, $update, $ignore_ref);
- $w = gtknew('Expander', text => $e->{text}, child => $box);
+ $w = gtknew('Button', child => gtknew('HBox', spacing => 5,
+ children_tight => [
+ gtknew('Image', file => 'advanced_expander'),
+ gtknew('Label', text => $e->{text}),
+ ],
+ ),
+ if_($::isInstall, relief => 'none'),
+ clicked => sub { ask_fromW($o, { }, $e->{children}) }
+ );
} elsif ($e->{type} =~ /list/) {
$e->{formatted_list} = [ map { may_apply($e->{format}, $_) } @{$e->{list}} ];