diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-21 19:28:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-21 19:28:25 +0000 |
commit | 3875685fd42a03d44a26a9ef0f3dfac164e04aa4 (patch) | |
tree | fdf7e8ed047d636f4211ebdd63d216150c9bd0ff /mdkapplet | |
parent | 7f62cee8c9f7209b231f19d249a624c12da0bb3d (diff) | |
download | mgaonline-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-x | mdkapplet | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}) { |