[gnome-clocks] Support notification filtering
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Support notification filtering
- Date: Thu, 3 Jan 2013 09:43:22 +0000 (UTC)
commit 0b087f247c30ff65554dbd00e16eed421a5a52b3
Author: Paolo Borelli <pborelli gnome org>
Date: Thu Jan 3 10:41:28 2013 +0100
Support notification filtering
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=691049
data/gnome-clocks.desktop.in | 2 +-
gnomeclocks/utils.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/gnome-clocks.desktop.in b/data/gnome-clocks.desktop.in
index 5aa5b65..66eb7b6 100644
--- a/data/gnome-clocks.desktop.in
+++ b/data/gnome-clocks.desktop.in
@@ -10,4 +10,4 @@ Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;Clock;
StartupNotify=true
-
+X-GNOME-UsesNotifications=true
diff --git a/gnomeclocks/utils.py b/gnomeclocks/utils.py
index b441c3a..267aed6 100644
--- a/gnomeclocks/utils.py
+++ b/gnomeclocks/utils.py
@@ -175,7 +175,8 @@ class Alert:
self.notification = None
if Notify.is_initted() or Notify.init("GNOME Clocks"):
- self.notification = Notify.Notification.new(title, msg, 'gnome-clocks')
+ self.notification = Notify.Notification.new(title, msg, "gnome-clocks")
+ self.notification.set_hint_string("desktop-entry", "gnome-clocks");
else:
print "Error: Could not trigger Alert"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]