[banshee] Work with new notification-daemon (BGO #565876)
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] Work with new notification-daemon (BGO #565876)
- Date: Thu, 4 Jun 2009 15:45:29 -0400 (EDT)
commit f1fc7adff8406432fa46c49fdb36f3d02da9920a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Jun 4 14:41:18 2009 -0500
Work with new notification-daemon (BGO #565876)
---
.../NotificationAreaService.cs | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
index 8ec2fbd..e457254 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
@@ -154,7 +154,9 @@ namespace Banshee.NotificationArea
}
if (current_nf != null) {
- current_nf.Close ();
+ try {
+ current_nf.Close ();
+ } catch {}
}
if (notif_area != null) {
@@ -446,11 +448,14 @@ namespace Banshee.NotificationArea
}
}
- try {
- if (current_nf != null) {
+ if (current_nf != null) {
+ try {
current_nf.Close ();
- }
-
+ } catch {}
+ current_nf = null;
+ }
+
+ try {
Notification nf = new Notification (Catalog.GetString ("Now Playing"),
message, image, notif_area.Widget);
nf.Urgency = Urgency.Low;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]