summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-21 19:28:25 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-21 19:28:25 +0000
commit3875685fd42a03d44a26a9ef0f3dfac164e04aa4 (patch)
treefdf7e8ed047d636f4211ebdd63d216150c9bd0ff /mdkapplet
parent7f62cee8c9f7209b231f19d249a624c12da0bb3d (diff)
downloadmgaonline-3875685fd42a03d44a26a9ef0f3dfac164e04aa4.tar
mgaonline-3875685fd42a03d44a26a9ef0f3dfac164e04aa4.tar.gz
mgaonline-3875685fd42a03d44a26a9ef0f3dfac164e04aa4.tar.bz2
mgaonline-3875685fd42a03d44a26a9ef0f3dfac164e04aa4.tar.xz
mgaonline-3875685fd42a03d44a26a9ef0f3dfac164e04aa4.zip
(setState) store list of invisible states (needed for next commit)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index d575fc87..a24697d2 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -431,7 +431,8 @@ sub setState {
my $tmp = gtkcreate_pixbuf($state{$state}{colour}[0]);
$icon->set_from_pixbuf($tmp);
$icon->set_tooltip(formatAlaTeX(translate($state{$state}{tt}[0])));
- $icon->set_visible(!member($state, qw(delayed okay)));
+ my @invisible_states = qw(delayed okay);
+ $icon->set_visible(!member($state, @invisible_states));
gtkflush(); # so that bubbles are displayed on right icon
if ($state{$state}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state}{do_not_use_bubble}) {