diff options
Diffstat (limited to 'mgaapplet')
-rwxr-xr-x | mgaapplet | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $@; } |