From 0951d36e8fe53bb2edf61673a463ad2d0eec4ea4 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 4 Dec 2013 20:19:41 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 6e78bf5f4..23872a568 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -427,7 +427,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); @@ -455,7 +454,6 @@ const FdoNotificationDaemon = new Lang.Class({ 'body-markup', // 'icon-multi', 'icon-static', - 'persistence', 'sound', ]; }, @@ -565,7 +563,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);