diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2004-01-16 18:35:17 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2004-01-16 18:35:17 +0000 |
commit | e8d31589352de1c72b2636002892b5dc69491160 (patch) | |
tree | aa28698b113de4740f1f25262d360549ffba1378 /perl-install/standalone/drakconnect | |
parent | cfb1206df4dc4cbcad25314f1eabed083080d5e5 (diff) | |
download | drakx-e8d31589352de1c72b2636002892b5dc69491160.tar drakx-e8d31589352de1c72b2636002892b5dc69491160.tar.gz drakx-e8d31589352de1c72b2636002892b5dc69491160.tar.bz2 drakx-e8d31589352de1c72b2636002892b5dc69491160.tar.xz drakx-e8d31589352de1c72b2636002892b5dc69491160.zip |
* manage interfaces:
- fix Ok button logic
- fix some calls to $apply
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-x | perl-install/standalone/drakconnect | 16 |
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 |