diff options
Diffstat (limited to 'bin/net_applet')
-rwxr-xr-x | bin/net_applet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet index 683add7..4732e9c 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -453,7 +453,7 @@ sub checkNetworkForce() { } sub cronNetwork() { my $i; - $timeout = Glib::Timeout->add(2000, sub { + $timeout = Glib::Timeout->add_seconds(2, sub { checkWireless() if !($i++%30); checkNetwork(); 1; @@ -489,7 +489,7 @@ sub go2State { my $timeout = 5000; $bubble->set_timeout($timeout); # both need to be in a eval block in case notification daemon isn't running: - Glib::Timeout->add($timeout, sub { eval { $bubble->close }; 0 }); + Glib::Timeout->add_seconds($timeout/1000, sub { eval { $bubble->close }; 0 }); eval { $bubble->show }; warn ">> ERR:$@" if $@; $need_update = 1; |