summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-21 17:37:41 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-21 17:37:41 +0000
commitf7e304c9b9040d4318d06e85008b62fb974a6207 (patch)
tree3bab8fb06365210406c4a623a1372a71cde5e7e4
parent93a1ff1c9f8da0dea35827f7febb961787140514 (diff)
downloadmgaonline-f7e304c9b9040d4318d06e85008b62fb974a6207.tar
mgaonline-f7e304c9b9040d4318d06e85008b62fb974a6207.tar.gz
mgaonline-f7e304c9b9040d4318d06e85008b62fb974a6207.tar.bz2
mgaonline-f7e304c9b9040d4318d06e85008b62fb974a6207.tar.xz
mgaonline-f7e304c9b9040d4318d06e85008b62fb974a6207.zip
(setState) do not show icon while waiting for initial check
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 9a083714..4861c06d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- mdkapplet:
o do not check for network while checking for updates
+ o do not show icon while waiting for initial check
o do not skip first RPM check (change made in 2.16 in march 2007)
o do not start network cyclic checks before first media test (#38991)
o check for network just before first check
diff --git a/mdkapplet b/mdkapplet
index da31d281..ce3dfbc6 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -449,7 +449,7 @@ sub setState {
my $tmp = gtkcreate_pixbuf($state{$state_type}{colour}[0]);
$icon->set_from_pixbuf($tmp);
$icon->set_tooltip(formatAlaTeX(translate($state{$state_type}{tt}[0])));
- $icon->set_visible($state_type ne 'okay');
+ $icon->set_visible(!member($state_type, qw(delayed okay)));
gtkflush(); # so that bubbles are displayed on right icon
if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state_type}{do_not_use_bubble}) {