From f9c33aaa670cfe1991fd4351377d256df9bae297 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 14 Apr 2008 17:21:08 +0000 Subject: (setState) like mdkapplet, do not crash if notify deamon failed on ->show (#40031) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@242164 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- NEWS | 3 +++ draksnapshot-applet | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f5ebeba..8ebf685 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- applet: + o do not crash if notify deamon failed on ->show (#40031) + Version 0.9 - 3 April 2008, Thierry Vignaud - applet: diff --git a/draksnapshot-applet b/draksnapshot-applet index adf8f5a..6e6265b 100755 --- a/draksnapshot-applet +++ b/draksnapshot-applet @@ -202,7 +202,7 @@ sub setState { my $bubble = Gtk2::Notify->new_with_status_icon(N("Warning"), formatAlaTeX(translate($state{$state_type}{tt}[0])) . "\n", '/usr/share/icons/draksnapshot.png', $icon); $bubble->set_timeout(5000); - $bubble->show; + eval { $bubble->show }; } my $menu = Gtk2::Menu->new; -- cgit v1.2.1