diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-28 15:25:48 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-28 15:25:48 +0000 |
commit | 0e32cf0bca437f291a60dba07180a78e7f04e419 (patch) | |
tree | 2367c5f085e57a42b2f25d7bb83203e922aa63fb /perl-install | |
parent | 0fcca9b1f865c7474011762cadcd6eba2d4fa621 (diff) | |
download | drakx-backup-do-not-use-0e32cf0bca437f291a60dba07180a78e7f04e419.tar drakx-backup-do-not-use-0e32cf0bca437f291a60dba07180a78e7f04e419.tar.gz drakx-backup-do-not-use-0e32cf0bca437f291a60dba07180a78e7f04e419.tar.bz2 drakx-backup-do-not-use-0e32cf0bca437f291a60dba07180a78e7f04e419.tar.xz drakx-backup-do-not-use-0e32cf0bca437f291a60dba07180a78e7f04e419.zip |
add {callbacks}{advanced}, called when "Advance" button is pressed
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/interactive.pm | 2 | ||||
-rw-r--r-- | perl-install/interactive/gtk.pm | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index bb3d63a4f..8731be5f9 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -320,7 +320,7 @@ sub ask_from_normalize { $common->{advanced_label} ||= _("Advanced"); $common->{advanced_label_close} ||= _("Basic"); $common->{$_} = [ deref($common->{$_}) ] foreach qw(messages advanced_messages); - add2hash_($common->{callbacks} ||= {}, { changed => sub {}, focus_out => sub {}, complete => sub { 0 }, canceled => sub { 0 } }); + add2hash_($common->{callbacks} ||= {}, { changed => sub {}, focus_out => sub {}, complete => sub { 0 }, canceled => sub { 0 }, advanced => sub {} }); } sub ask_from_ { diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 106df7706..3fb7fd02a 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -508,8 +508,9 @@ sub ask_fromW { my $set_advanced = sub { ($advanced) = @_; $set_default_size->() if $advanced; + $update->($common->{callbacks}{advanced}) if $advanced; $advanced ? $advanced_pack->show : $advanced_pack->hide; - @widgets = (@widgets_always, $advanced ? @widgets_advanced : ()); + @widgets = (@widgets_always, if_($advanced, @widgets_advanced)); $mainw->sync; #- for $set_all below (mainly for the set of clist) $set_all->(); #- must be done when showing advanced lists (to center selected value) }; |