diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-07 12:13:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-07 12:13:07 +0000 |
commit | dd54273bbfb9f9873025aebfef9b77a4ae43bf08 (patch) | |
tree | 7c17a37380424715b98547f0859b9a409bc9f6c6 /mdkapplet | |
parent | cfba2e4fe434c8ed679897362cf2e1e672088031 (diff) | |
download | mgaonline-dd54273bbfb9f9873025aebfef9b77a4ae43bf08.tar mgaonline-dd54273bbfb9f9873025aebfef9b77a4ae43bf08.tar.gz mgaonline-dd54273bbfb9f9873025aebfef9b77a4ae43bf08.tar.bz2 mgaonline-dd54273bbfb9f9873025aebfef9b77a4ae43bf08.tar.xz mgaonline-dd54273bbfb9f9873025aebfef9b77a4ae43bf08.zip |
introduce "delayed" state in order to make clear we wait for the
initial check
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -85,6 +85,17 @@ mkdir_p($localdir) if !-d $localdir; -e "$ENV{HOME}/.mdkonline" and system("mv", "$ENV{HOME}/.mdkonline", $localfile); my %state = ( + delayed => { + colour => [ 'busy' ], + changes => [ 'busy', 'critical', 'disconnected' ], + menu => [ 'check', 'weblink' ], + tt => [ + #-PO: here %s will be replaced by the local time (eg: "Will check updates at 14:03:50" + N("Will check updates at %s", POSIX::strftime("%T", localtime(time() + $config{FIRST_CHECK_DELAY}/1000))) + ], + #localtime(time() + + }, + okay => { colour => [ 'okay' ], changes => [ 'busy', 'critical', 'disconnected' ], @@ -239,7 +250,7 @@ if ($opt eq '--debug') { $debug = 1 } shouldStart() or die "$localfile should be set to TRUE: please use --force or -f option to launch applet"; $icon->show_all; -go2State('okay'); +go2State('delayed'); gtkflush(); checkConfig(); Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub { checkUpdates(); 0 }); |