[gnome-shell] autorunManager: Follow Files' notification policy



commit 8d7bb6496cf77949f58052208e8b4296522b405f
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Nov 16 20:27:08 2015 +0100

    autorunManager: Follow Files' notification policy
    
    Builtin chat and network notifications already follow the notification
    policy of appropriate applications, it makes sense to do the same for
    autorun notifications to give users control over hotplug notifications
    in Settings.

 js/ui/components/autorunManager.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js
index f800db8..90a2961 100644
--- a/js/ui/components/autorunManager.js
+++ b/js/ui/components/autorunManager.js
@@ -313,6 +313,10 @@ const AutorunSource = new Lang.Class({
 
     getIcon: function() {
         return this.mount.get_icon();
+    },
+
+    _createPolicy: function() {
+        return new MessageTray.NotificationApplicationPolicy('org.gnome.Nautilus');
     }
 });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]