summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-07 12:13:07 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-07 12:13:07 +0000
commitdd54273bbfb9f9873025aebfef9b77a4ae43bf08 (patch)
tree7c17a37380424715b98547f0859b9a409bc9f6c6 /mdkapplet
parentcfba2e4fe434c8ed679897362cf2e1e672088031 (diff)
downloadmgaonline-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-xmdkapplet13
1 files changed, 12 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 0c3e0343..286486a6 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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 });