[banshee] NotificationArea: play notification on Gnome Lockscreen (bgo#733517)
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] NotificationArea: play notification on Gnome Lockscreen (bgo#733517)
- Date: Tue, 22 Jul 2014 00:59:05 +0000 (UTC)
commit 3cc3ee064d9d9c7c66f7a17b0c24b1dcf2937205
Author: Samuel Gyger <samuel gyger at>
Date: Tue Jul 22 02:55:58 2014 +0200
NotificationArea: play notification on Gnome Lockscreen (bgo#733517)
Signed-off-by: Andrés G. Aragoneses <knocte gmail com>
data/desktop-files/common.desktop.in | 1 +
.../NotificationAreaService.cs | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/desktop-files/common.desktop.in b/data/desktop-files/common.desktop.in
index 505d747..edbdd70 100644
--- a/data/desktop-files/common.desktop.in
+++ b/data/desktop-files/common.desktop.in
@@ -13,3 +13,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=banshee
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version= VERSION@
+X-GNOME-UsesNotifications=true
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
index 3e47a55..b9f393d 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
@@ -500,6 +500,10 @@ namespace Banshee.NotificationArea
current_nf.AddHint ("image-path", image);
}
+ if (ServiceManager.PlayerEngine.IsPlaying ()) {
+ current_nf.Category = "x-gnome.music";
+ }
+
if (PersistenceSupported) {
current_nf.AddHint ("resident", true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]