From ee9dc74d8eb47c1444072ae1905e0bb69b6aface Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 4 Feb 2014 03:37:06 +0100 Subject: fix crashing if there's not notification daemon (mga#12416) --- NEWS | 1 + mgaapplet | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 49a2fbbb..a9c7fabd 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ - include strings from mgaapplet-update-checker & mgaapplet-upgrade-helper - restore old translations - fix some gtk2 -> gtk3 migration fallouts (mga#12527) +- fix crashing if there's not notification daemon (mga#12416) Version 3.9 - 25 January 2014, Colin Guthrie diff --git a/mgaapplet b/mgaapplet index 3474def6..5991921d 100755 --- a/mgaapplet +++ b/mgaapplet @@ -693,7 +693,7 @@ sub setState { $bubble->set_urgency($state{$state}{urgency}) if $state{$state}{urgency}; my $timeout = 5000; $bubble->set_timeout($timeout); - Glib::Timeout->add($timeout, sub { $bubble->close; 0 }); + Glib::Timeout->add($timeout, sub { eval { $bubble->close }; 0 }); eval { $bubble->show }; warn ">> ERR:$@" if $@; } -- cgit v1.2.1