summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-02-05 00:23:31 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-02-05 00:23:31 +0100
commitd3eb4943d88f84db1a827bb0c7bc51984250eab7 (patch)
tree68e7f07ff3610d9064c97302cf669eb4745c2da0 /mgaapplet
parent9fbe713543ba28ab44914cc1d58ee1af469c4760 (diff)
downloadmgaonline-d3eb4943d88f84db1a827bb0c7bc51984250eab7.tar
mgaonline-d3eb4943d88f84db1a827bb0c7bc51984250eab7.tar.gz
mgaonline-d3eb4943d88f84db1a827bb0c7bc51984250eab7.tar.bz2
mgaonline-d3eb4943d88f84db1a827bb0c7bc51984250eab7.tar.xz
mgaonline-d3eb4943d88f84db1a827bb0c7bc51984250eab7.zip
explain
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet1
1 files changed, 1 insertions, 0 deletions
diff --git a/mgaapplet b/mgaapplet
index 5991921d..78f9f134 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -693,6 +693,7 @@ sub setState {
$bubble->set_urgency($state{$state}{urgency}) if $state{$state}{urgency};
my $timeout = 5000;
$bubble->set_timeout($timeout);
+ # both need to be in a eval block in case notification daemon isn't running:
Glib::Timeout->add($timeout, sub { eval { $bubble->close }; 0 });
eval { $bubble->show };
warn ">> ERR:$@" if $@;