summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-27 19:35:47 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-27 19:35:47 +0000
commitdeef14154706589302c78be1a69549e8f573226a (patch)
tree07a78b63317a57eef73cfc048c71508fab2d5087 /perl-install/interactive
parent1425fd4eb7a7a54d52ec701df078816bde6e2141 (diff)
downloaddrakx-backup-do-not-use-deef14154706589302c78be1a69549e8f573226a.tar
drakx-backup-do-not-use-deef14154706589302c78be1a69549e8f573226a.tar.gz
drakx-backup-do-not-use-deef14154706589302c78be1a69549e8f573226a.tar.bz2
drakx-backup-do-not-use-deef14154706589302c78be1a69549e8f573226a.tar.xz
drakx-backup-do-not-use-deef14154706589302c78be1a69549e8f573226a.zip
(create_widget) simplify last two commits
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm12
1 files changed, 3 insertions, 9 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index c3c13e620..5c7ad2ee9 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -11,7 +11,6 @@ use common;
use mygtk2;
use ugtk2 qw(:helpers :wrappers :create);
use Gtk2::Gdk::Keysyms;
-use feature qw(state);
my $forgetTime = 1000; #- in milli-seconds
@@ -419,17 +418,12 @@ sub create_widget {
$set = sub { $adj->set_value($_[0]) };
} elsif ($e->{type} eq 'expander') {
$e->{grow} = 'fill';
+ my $children = [ if_($e->{message}, { type => 'only_label', no_indent => 1, val => \$e->{message} }), @{$e->{children}} ];
+ create_widgets_block($o, $children, $update, $ignore_ref);
$w = gtknew('HBox', children_tight => [
gtknew('Install_Button', text => $e->{text},
clicked => sub {
- state $done;
- if (!$done) {
- unshift @{$e->{children}},
- { type => 'only_label', no_indent => 1, val => \$e->{message} } if $e->{message};
- $done = 1;
- }
-
- ask_fromW($o, { title => N("Advanced") }, $e->{children}) }
+ ask_fromW($o, { title => N("Advanced") }, $children) }
)
]);
} elsif ($e->{type} =~ /list/) {