summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2004-01-16 18:35:17 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2004-01-16 18:35:17 +0000
commite8d31589352de1c72b2636002892b5dc69491160 (patch)
treeaa28698b113de4740f1f25262d360549ffba1378
parentcfb1206df4dc4cbcad25314f1eabed083080d5e5 (diff)
downloaddrakx-backup-do-not-use-e8d31589352de1c72b2636002892b5dc69491160.tar
drakx-backup-do-not-use-e8d31589352de1c72b2636002892b5dc69491160.tar.gz
drakx-backup-do-not-use-e8d31589352de1c72b2636002892b5dc69491160.tar.bz2
drakx-backup-do-not-use-e8d31589352de1c72b2636002892b5dc69491160.tar.xz
drakx-backup-do-not-use-e8d31589352de1c72b2636002892b5dc69491160.zip
* manage interfaces:
- fix Ok button logic - fix some calls to $apply
-rwxr-xr-xperl-install/standalone/drakconnect16
1 files changed, 8 insertions, 8 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index c9ad59fb5..99e451891 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -216,9 +216,9 @@ sub manage {
ok_clicked => sub {
if ($apply_button->get_property('sensitive')) {
save($netc, $netcnx, $intf, $gui, $apply_button);
- $window->destroy;
- Gtk2->main_quit;
- }
+ }
+ $window->destroy;
+ Gtk2->main_quit;
},
},
undef, undef, '',
@@ -256,7 +256,7 @@ sub build_notebook {
gtkpack_($gui->{sheet}{'Tcp/ip'} = Gtk2::VBox->new(0,0),
if_($interface =~ /eth/,
0, $gui->{intf}{BOOTPROTO} = gtksignal_connect(Gtk2::OptionMenu->new,
- changed => sub { $_->set_sensitive($gui->{intf}{BOOTPROTO}->get_text eq "static" ? 1 : 0) foreach $gui->{intf}{IPADDR}, $gui->{intf}{NETMASK} },
+ changed => sub { $_->set_sensitive($gui->{intf}{BOOTPROTO}->get_text eq "static" ? 1 : 0) foreach $gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}; $apply->() },
),
),
1, gtkpack(Gtk2::HBox->new(0,0),
@@ -363,10 +363,10 @@ sub build_notebook {
),
),
));
- $dialing_mode_radio[0]->signal_connect('toggled' => sub { $gui->{cnx}{dialing_mode_radio} = 'auto'; $apply });
- $dialing_mode_radio[1]->signal_connect('toggled' => sub { $gui->{cnx}{dialing_mode_radio} = 'static'; $apply });
- $speed_radio[0]->signal_connect('toggled' => sub { $gui->{cnx}{speed_radio} = '64'; $apply });
- $speed_radio[1]->signal_connect('toggled' => sub { $gui->{cnx}{speed_radio} = '128'; $apply });
+ $dialing_mode_radio[0]->signal_connect('toggled' => sub { $gui->{cnx}{dialing_mode_radio} = 'auto'; $apply->() });
+ $dialing_mode_radio[1]->signal_connect('toggled' => sub { $gui->{cnx}{dialing_mode_radio} = 'static'; $apply->() });
+ $speed_radio[0]->signal_connect('toggled' => sub { $gui->{cnx}{speed_radio} = '64'; $apply->() });
+ $speed_radio[1]->signal_connect('toggled' => sub { $gui->{cnx}{speed_radio} = '128'; $apply->() });
$gui->{intf_bool}{$_}->set_active($intf->{$_} eq 'yes' ? 1 : 0) foreach keys %{$gui->{intf_bool}};
#- account box