summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-03 16:39:59 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-03 16:39:59 +0000
commit2911e0ca9593382523454da9e9c93d3555475383 (patch)
treee39892761ddd9a7b28b1eecdbc335b09f4694592
parent323408aa0cc5d33a38fb8382c8d67b6ae56e5613 (diff)
downloadmgaonline-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-xmdkapplet8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 7ac3007d..19f88d0d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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();