summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-05 12:53:13 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-05 12:53:13 +0000
commit5b52366ac10d7e1e62cb95cb3d25447083be1481 (patch)
treed3da3e5ccc6e2f46d68aeeea3c0ffaab59cc9549 /mdkapplet
parent6b9f0f40936beb5079a74b116f0243b924ddbb65 (diff)
downloadmgaonline-5b52366ac10d7e1e62cb95cb3d25447083be1481.tar
mgaonline-5b52366ac10d7e1e62cb95cb3d25447083be1481.tar.gz
mgaonline-5b52366ac10d7e1e62cb95cb3d25447083be1481.tar.bz2
mgaonline-5b52366ac10d7e1e62cb95cb3d25447083be1481.tar.xz
mgaonline-5b52366ac10d7e1e62cb95cb3d25447083be1481.zip
(setState) hide icon when no updates are availlable (#29768)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index ea2edc24..8b018ad5 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -450,6 +450,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');
if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state_type}{do_not_use_bubble}) {
my $bubble = Gtk2::Notify->new_with_status_icon(N("Warning"), formatAlaTeX(translate($state{$state_type}{tt}[0])),