From dd54273bbfb9f9873025aebfef9b77a4ae43bf08 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 7 Aug 2007 12:13:07 +0000 Subject: introduce "delayed" state in order to make clear we wait for the initial check --- mdkapplet | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 }); -- cgit v1.2.1