diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-12-11 20:39:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-12-11 20:39:06 +0000 |
commit | f48f33243e7f8fcf627e05a614d595c1683b50db (patch) | |
tree | d08c64baa865963920ea316a380009bc715478e5 | |
parent | 6458f111ae74afb9c187819bde198291eb0bb7e7 (diff) | |
download | mgaonline-f48f33243e7f8fcf627e05a614d595c1683b50db.tar mgaonline-f48f33243e7f8fcf627e05a614d595c1683b50db.tar.gz mgaonline-f48f33243e7f8fcf627e05a614d595c1683b50db.tar.bz2 mgaonline-f48f33243e7f8fcf627e05a614d595c1683b50db.tar.xz mgaonline-f48f33243e7f8fcf627e05a614d595c1683b50db.zip |
(setState) enable to have states w/o displaying bubbles
-rwxr-xr-x | mdkapplet | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -447,10 +447,12 @@ sub setState { $img->set_from_pixbuf($tmp); gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(translate($state{$state_type}{tt}[0]))); - my $bubble = Gtk2::NotificationBubble->new; - $bubble->attach($icon); - $bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0]))); - $bubble->show(5000); + if ($state{$state_type}{tt}[0]) { + my $bubble = Gtk2::NotificationBubble->new; + $bubble->attach($icon); + $bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0]))); + $bubble->show(5000); + } my $menu = Gtk2::Menu->new; foreach (@$arr) { |