summaryrefslogtreecommitdiffstats
path: root/lib/network/drakconnect/edit.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 12:25:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 12:25:34 +0000
commit2dd11815b455f1bb9510b5c9cf90e4f08f7bfa21 (patch)
treec1a18d9282ca460850d12dfe66239969887a340a /lib/network/drakconnect/edit.pm
parenta2849d2425633eabb21fec8c5903f92b32b7fd79 (diff)
downloaddrakx-net-2dd11815b455f1bb9510b5c9cf90e4f08f7bfa21.tar
drakx-net-2dd11815b455f1bb9510b5c9cf90e4f08f7bfa21.tar.gz
drakx-net-2dd11815b455f1bb9510b5c9cf90e4f08f7bfa21.tar.bz2
drakx-net-2dd11815b455f1bb9510b5c9cf90e4f08f7bfa21.tar.xz
drakx-net-2dd11815b455f1bb9510b5c9cf90e4f08f7bfa21.zip
pass some missing variables
Diffstat (limited to 'lib/network/drakconnect/edit.pm')
-rw-r--r--lib/network/drakconnect/edit.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/network/drakconnect/edit.pm b/lib/network/drakconnect/edit.pm
index 667958e..e71ddd8 100644
--- a/lib/network/drakconnect/edit.pm
+++ b/lib/network/drakconnect/edit.pm
@@ -58,7 +58,7 @@ sub manage {
cancel_clicked => sub { $window->destroy; Gtk2->main_quit },
ok_clicked => sub {
if ($apply_button->get_property('sensitive')) {
- save($in, $net, $p, $apply_button);
+ save($in, $net, $modules_conf, $p, $apply_button);
}
$window->destroy;
Gtk2->main_quit;
@@ -66,7 +66,7 @@ sub manage {
},
undef, undef, '',
[ N("Help"), sub { run_program::raw({ detach => 1 }, 'drakhelp', '--id', 'internet-connection') } ],
- [ N("Apply"), sub { save($in, $net, $p, $apply_button) }, 0, 1 ],
+ [ N("Apply"), sub { save($in, $net, $modules_conf, $p, $apply_button) }, 0, 1 ],
),
),
);
@@ -186,7 +186,7 @@ sub build_notebook {
$_->set_sensitive(0) foreach $gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}, $gui->{network}{GATEWAY};
delete $gui->{intf}{BOOTPROTO};
}
- !$intf->{IPADDR} and ($intf->{IPADDR}, $gui->{active}, $intf->{NETMASK}) = network::drakconnect::get_intf_ip($interface_name);
+ !$intf->{IPADDR} and ($intf->{IPADDR}, $gui->{active}, $intf->{NETMASK}) = network::drakconnect::get_intf_ip($net, $interface_name);
$gui->{network}{$_}->set_text($net->{network}{$_}) foreach keys %{$gui->{network}};
}
@@ -459,7 +459,7 @@ sub populate_notebook {
}
sub save {
- my ($in, $net, $p, $apply_button) = @_;
+ my ($in, $net, $modules_conf, $p, $apply_button) = @_;
my $dialog = _create_dialog(N("Please wait"));
gtkpack($dialog->vbox,
@@ -474,7 +474,7 @@ sub save {
save_notebook($in, $net, $p->{$_}{intf}, $p->{$_}{gui}) or return;
$p->{$_}{intf}{save} and $p->{$_}{intf}{save}->();
}
- network::drakconnect::apply();
+ network::drakconnect::apply($in, $net, $modules_conf);
system("/etc/rc.d/init.d/network restart");
$dialog->response(0);
});