summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgaapplet b/mgaapplet
index 79541d70..c406f3d1 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -598,7 +598,7 @@ sub silentCheck() {
}
sub setup_cyclic_check() {
- $network_timeout = Glib::Timeout->add(2000, sub { checkNetwork(); 1 });
+ $network_timeout = Glib::Timeout->add_seconds(2, sub { checkNetwork(); 1 });
$timeout = Glib::Timeout->add_seconds($config{UPDATE_FREQUENCY}, sub {
checkUpdates();
1;
@@ -716,7 +716,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 $@;
}