summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-01 17:28:25 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-01 17:28:25 +0000
commitdf25d2b6af6255ce95648251b1faf1d1c5e4174b (patch)
treec1d353f1571cf13398a3dc85ef31dd2d740dafb0 /mdkapplet
parentbdc4cc39d23401c2a6ed73b6a8b57cce7f01883a (diff)
downloadmgaonline-df25d2b6af6255ce95648251b1faf1d1c5e4174b.tar
mgaonline-df25d2b6af6255ce95648251b1faf1d1c5e4174b.tar.gz
mgaonline-df25d2b6af6255ce95648251b1faf1d1c5e4174b.tar.bz2
mgaonline-df25d2b6af6255ce95648251b1faf1d1c5e4174b.tar.xz
mgaonline-df25d2b6af6255ce95648251b1faf1d1c5e4174b.zip
(setState) do not crash when icon is removed from the panel socket (#35908)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index b5ae0d99..50f25acd 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -420,7 +420,7 @@ sub setState {
$img->set_from_pixbuf($tmp);
gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(translate($state{$state_type}{tt}[0])));
- if ($state{$state_type}{tt}[0]) {
+ if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::TrayIcon')) {
my $bubble = Gtk2::NotificationBubble->new;
$bubble->attach($icon);
$bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0])));