diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2004-01-30 11:02:20 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2004-01-30 11:02:20 +0000 |
commit | da1293ec901e9afcb4bbdc057a26d720c7b09a05 (patch) | |
tree | 4530de04b0998157e9aba5d280070ab9f5e2e0ed /perl-install/standalone/drakconnect | |
parent | aaf13635db4c3e42fc67e00016f703aeabefefd3 (diff) | |
download | drakx-da1293ec901e9afcb4bbdc057a26d720c7b09a05.tar drakx-da1293ec901e9afcb4bbdc057a26d720c7b09a05.tar.gz drakx-da1293ec901e9afcb4bbdc057a26d720c7b09a05.tar.bz2 drakx-da1293ec901e9afcb4bbdc057a26d720c7b09a05.tar.xz drakx-da1293ec901e9afcb4bbdc057a26d720c7b09a05.zip |
- show gateway in ethernet only
- hide gateway Entry in dhcp mode
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-x | perl-install/standalone/drakconnect | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index b987513c3..282345561 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -289,7 +289,7 @@ sub build_notebook { gtkpack_($gui->{sheet}{N("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}; $apply->() }, + changed => sub { $_->set_sensitive($gui->{intf}{BOOTPROTO}->get_text eq "static" ? 1 : 0) foreach $gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}, $gui->{netc}{GATEWAY}; $apply->() }, ), ), 1, gtkpack(Gtk2::HBox->new(0,0), @@ -304,11 +304,13 @@ sub build_notebook { 0, gtksignal_connect($gui->{intf}{NETMASK} = Gtk2::Entry->new, key_press_event => $apply), ), - 0, gtkpack_(Gtk2::VBox->new(0,0), - 1, Gtk2::Label->new(N("Gateway")), - 0, gtksignal_connect($gui->{netc}{GATEWAY} = Gtk2::Entry->new, - key_press_event => $apply), - ), + if_($interface =~ /eth/, + 0, gtkpack_(Gtk2::VBox->new(0,0), + 1, Gtk2::Label->new(N("Gateway")), + 0, gtksignal_connect($gui->{netc}{GATEWAY} = Gtk2::Entry->new, + key_press_event => $apply), + ), + ), ), Gtk2::VSeparator->new, gtkpack_(Gtk2::VBox->new(0,0), |