summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_monitor
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-12 18:22:01 +0000
committerdamien <damien@mandriva.com>2001-08-12 18:22:01 +0000
commit42a633a091611f9058e26187b0cf2b5ce37832b0 (patch)
treec16814de31bd9647067721c4b84c82b75672b711 /perl-install/standalone/net_monitor
parentc2676f6719a95391172f35127e753afb16f827c7 (diff)
downloaddrakx-backup-do-not-use-42a633a091611f9058e26187b0cf2b5ce37832b0.tar
drakx-backup-do-not-use-42a633a091611f9058e26187b0cf2b5ce37832b0.tar.gz
drakx-backup-do-not-use-42a633a091611f9058e26187b0cf2b5ce37832b0.tar.bz2
drakx-backup-do-not-use-42a633a091611f9058e26187b0cf2b5ce37832b0.tar.xz
drakx-backup-do-not-use-42a633a091611f9058e26187b0cf2b5ce37832b0.zip
corrected connected call
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-xperl-install/standalone/net_monitor11
1 files changed, 6 insertions, 5 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index 2f58c073f..e3283bf52 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -27,6 +27,7 @@ use my_gtk qw(:helpers :wrappers);
use common;
use strict;
use network::netconnect;
+use network::tools;
use MDK::Common::Globals "network", qw($in $prefix $connect_file $disconnect_file $connect_prog);
my ($connect, $default_intf);
@@ -153,16 +154,16 @@ sub connection {
my $tag2 = Gtk->timeout_add(10000, sub {
Gtk->timeout_remove($tag);
$statusbar->pop(1);
- $statusbar->push(1, $isconnected2 ? ( network::netconnect::connected('', $netc) ?
+ $statusbar->push(1, $isconnected2 ? ( connected() ?
_("Disconnection from Internet failed.") :
_("Disconnection from Internet complete.")) :
- ( network::netconnect::connected('', $netc) ?
+ ( connected() ?
_("Connection complete.") :
_("Connection failed.\nVerify your configuration in the Mandrake Control Center."))
);
my $tag3 = Gtk->timeout_add(10000, sub {
$statusbar->pop(1);
- $statusbar->push(1, network::netconnect::connected('', $netc) ? _("Connected") : _("Not connected"));
+ $statusbar->push(1, connected() ? _("Connected") : _("Not connected"));
0;
});
$button_connect->set_sensitive(1);
@@ -331,11 +332,11 @@ sub update {
}
@interfaces = @intfs;
my $netc={};
- if(network::netconnect::connected('', $netc) == !$isconnected) {
+ if(connected() == !$isconnected) {
$isconnected = $isconnected ? 0 : 1;
$label_c->set($isconnected ? _("Disconnect") : _("Connect"));
$statusbar->pop(1);
- $statusbar->push(1, network::netconnect::connected('', $netc) ? _("Connected") : _("Not connected"));
+ $statusbar->push(1, connected() ? _("Connected") : _("Not connected"));
$isconnected ? $pix_c->set($pix_c_map, $pix_c_mask) : $pix_c->set($pix_d_map, $pix_d_mask);
}
$time_tag2 = Gtk->timeout_add(5000, \&update);