summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-05 00:36:32 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-05 00:36:32 +0000
commit9adab15cd9e635c8b919c5e1e5fa6faf8a93840a (patch)
treedf5fee153cb2a7ebbf220394462be4d7fee3baf5 /mdkapplet
parentf2361da57c1540ae289bcde41ec92960686c1178 (diff)
downloadmgaonline-9adab15cd9e635c8b919c5e1e5fa6faf8a93840a.tar
mgaonline-9adab15cd9e635c8b919c5e1e5fa6faf8a93840a.tar.gz
mgaonline-9adab15cd9e635c8b919c5e1e5fa6faf8a93840a.tar.bz2
mgaonline-9adab15cd9e635c8b919c5e1e5fa6faf8a93840a.tar.xz
mgaonline-9adab15cd9e635c8b919c5e1e5fa6faf8a93840a.zip
revert
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet8
1 files changed, 3 insertions, 5 deletions
diff --git a/mdkapplet b/mdkapplet
index 2b6a9dfc..ac9714c4 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -57,7 +57,7 @@ my $in = interactive->vnew('');
ugtk2::add_icon_path("/usr/share/mdkonline/pixmaps/");
my $online_site = "http://www.mandrivalinux.com/";
-my ($menu, $timeout, $network_timeout, $state_global);
+my ($menu, $timeout, $state_global);
my $localdir = "$ENV{HOME}/.MdkOnline";
my $localfile = "$localdir/mdkonline";
@@ -396,13 +396,13 @@ sub okState() { logIt(N_("System is up-to-date\n")); go2State('okay') }
sub setup_cyclic_check() {
- $network_timeout = Glib::Timeout->add(2000, \&checkNetwork);
$timeout = Glib::Timeout->add($config{UPDATE_FREQUENCY}*1000, sub {
my $first_run if 0;
if (!$first_run) {
$first_run = 1;
return 1;
}
+ checkNetwork();
checkUpdates();
1;
});
@@ -423,8 +423,7 @@ sub checkNetwork() {
if (!isNetwork()) {
logIt(N_("Checking Network: seems disabled\n"));
go2State('disconnected');
- } elsif (member($state_global, qw(disconnected))) {
- silentCheck(); #- state has changed, update
+ }
}
sub checkUpdates() {
@@ -531,6 +530,5 @@ LASTCHECK=$date
sub mainQuit() {
# setAutoStart('FALSE');
Glib::Source->remove($timeout) if $timeout;
- Glib::Source->remove($network_timeout) if $network_timeout;
Gtk2->main_quit;
}