diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-03 16:39:59 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-03 16:39:59 +0000 |
commit | 2911e0ca9593382523454da9e9c93d3555475383 (patch) | |
tree | e39892761ddd9a7b28b1eecdbc335b09f4694592 | |
parent | 323408aa0cc5d33a38fb8382c8d67b6ae56e5613 (diff) | |
download | mgaonline-2911e0ca9593382523454da9e9c93d3555475383.tar mgaonline-2911e0ca9593382523454da9e9c93d3555475383.tar.gz mgaonline-2911e0ca9593382523454da9e9c93d3555475383.tar.bz2 mgaonline-2911e0ca9593382523454da9e9c93d3555475383.tar.xz mgaonline-2911e0ca9593382523454da9e9c93d3555475383.zip |
- timeout to switch state when configured
-rwxr-xr-x | mdkapplet | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -33,7 +33,7 @@ if ($@) { } my ($eventbox, $img); add_icon_path("/usr/share/mdkonline/pixmaps/"); -my ($menu, $url, $timeout); +my ($menu, $url, $timeout, $refreshtm); my $nowindow = 1; my $arch = arch(); my $av_pkgs; @@ -240,7 +240,11 @@ sub isNetwork { } sub configure { system "/usr/sbin/mdkonline &"; - + $refreshtm = Glib::Timeout->add(1*60*1000, sub { + -e $conffile and Glib::Source->remove($refreshtm); + silentCheck(); + 1; + }); } sub getSite { my $b = browser(); |