[gnome-shell] messageTray: Emit signal when notifications are	enabled/disabled
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-shell] messageTray: Emit signal when notifications are	enabled/disabled
- Date: Thu, 14 May 2015 13:15:25 +0000 (UTC)
commit 0aa29daa7292e1f385f460b50ff05e6f6df7b77e
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue May 12 21:27:59 2015 +0200
    messageTray: Emit signal when notifications are enabled/disabled
    
    Since the introduction of per-source notification policy in commit
    098bd4509ba0, the NotificationPolicy::enable-changed signal has been
    used to track the 'enable' setting. However as we never actually
    emitted that signal, this never worked without a restart - oops.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749279
 js/ui/messageTray.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 4a949d4..e0d6344 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -258,6 +258,8 @@ const NotificationApplicationPolicy = new Lang.Class({
 
     _changed: function(settings, key) {
         this.emit('policy-changed', key);
+        if (key == 'enable')
+            this.emit('enable-changed');
     },
 
     _canonicalizeId: function(id) {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]