diff options
Diffstat (limited to 'mdkapplet')
-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) { |