diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-04-14 17:21:08 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-04-14 17:21:08 +0000 |
commit | f9c33aaa670cfe1991fd4351377d256df9bae297 (patch) | |
tree | 9caf6abdc92e89648ad4db4941cf59188832b66f | |
parent | 08720733abed505c3b4231b09e57786d3ed5ab38 (diff) | |
download | draksnapshot-f9c33aaa670cfe1991fd4351377d256df9bae297.tar draksnapshot-f9c33aaa670cfe1991fd4351377d256df9bae297.tar.gz draksnapshot-f9c33aaa670cfe1991fd4351377d256df9bae297.tar.bz2 draksnapshot-f9c33aaa670cfe1991fd4351377d256df9bae297.tar.xz draksnapshot-f9c33aaa670cfe1991fd4351377d256df9bae297.zip |
(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
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | draksnapshot-applet | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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; |