[gnome-shell/wip/new-notifications: 3/13] notificationDaemon: Remove support for resident notifications
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/new-notifications: 3/13] notificationDaemon: Remove support for resident notifications
- Date: Fri, 13 Dec 2013 16:53:52 +0000 (UTC)
commit e7e128aad7cbeed12903de25f76ba54920a486c1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Dec 4 20:19:41 2013 -0500
notificationDaemon: Remove support for resident notifications
They're not really an API that has caught on, and not really one
we want to support, either.
js/ui/notificationDaemon.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index d6f983d..99597ba 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -441,7 +441,6 @@ const FdoNotificationDaemon = new Lang.Class({
notification.setUrgency(MessageTray.Urgency.CRITICAL);
break;
}
- notification.setResident(hints.resident == true);
// 'transient' is a reserved keyword in JS, so we have to retrieve the value
// of the 'transient' hint with hints['transient'] rather than hints.transient
notification.setTransient(hints['transient'] == true);
@@ -469,7 +468,6 @@ const FdoNotificationDaemon = new Lang.Class({
'body-markup',
// 'icon-multi',
'icon-static',
- 'persistence',
'sound',
];
},
@@ -583,7 +581,7 @@ const FdoNotificationDaemonSource = new Lang.Class({
this.iconUpdated();
let tracker = Shell.WindowTracker.get_default();
- if (notification.resident && this.app && tracker.focus_app == this.app)
+ if (this.app && tracker.focus_app == this.app)
this.pushNotification(notification);
else
this.notify(notification);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]