From 71afbec0cd47ff7e589a1f386f4adc477d48bd09 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 18 Aug 2008 15:33:45 +0000 Subject: (create_widget) popup advanced settings in dialogs --- perl-install/install/NEWS | 1 + perl-install/interactive/gtk.pm | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 9240021d0..d2660b6f6 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,6 +1,7 @@ - align titles to the left - display a separator below titles - justify big texts +- popup advanced settings in dialogs - refresh: o language step o license step 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}} ]; -- cgit v1.2.1