summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-08-22 12:59:37 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-08-22 12:59:37 +0000
commit582dd529745ceca897bee237b7fac60e5ba8ca99 (patch)
tree1cdcb4951ee4b874736e8e4d4e58bf3f960b56ea
parent4a7d5b9967ae340cd9f5f9660b60761a3f1c8976 (diff)
downloaddrakx-582dd529745ceca897bee237b7fac60e5ba8ca99.tar
drakx-582dd529745ceca897bee237b7fac60e5ba8ca99.tar.gz
drakx-582dd529745ceca897bee237b7fac60e5ba8ca99.tar.bz2
drakx-582dd529745ceca897bee237b7fac60e5ba8ca99.tar.xz
drakx-582dd529745ceca897bee237b7fac60e5ba8ca99.zip
(ask_fromW) split $set_advanced into $set_advanced and
$set_advanced_raw to fix drakconnect "failling" to detect network interfaces in standalone mode when in expert mode
-rw-r--r--perl-install/interactive/gtk.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index c320ac9e1..734d25d7e 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -592,11 +592,15 @@ sub ask_fromW {
}
};
+ my $set_advanced_raw = sub {
+ ($advanced) = @_;
+ $advanced ? $advanced_pack->show : $advanced_pack->hide;
+ };
my $set_advanced = sub {
($advanced) = @_;
$set_default_size->() if $advanced;
$update->($common->{callbacks}{advanced}) if $advanced;
- $advanced ? $advanced_pack->show : $advanced_pack->hide;
+ $set_advanced_raw->($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)
@@ -661,7 +665,8 @@ sub ask_fromW {
}
gtkadd($mainw->{window}, $pack);
$set_default_size->() if $has_scroll_always;
- $set_advanced->($common->{advanced_state} || $::expert);
+ $set_advanced->($common->{advanced_state});
+ $set_advanced_raw->($::expert) if $::isStandalone;
my $widget_to_focus =
$common->{focus_cancel} ? $mainw->{cancel} :