Blame SOURCES/0001-messageTray-Emit-signal-when-notifications-are-enabl.patch

580c05
From e598852366619893def62b0a99ef69bc7cfc5c0f Mon Sep 17 00:00:00 2001
580c05
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
580c05
Date: Tue, 12 May 2015 21:27:59 +0200
580c05
Subject: [PATCH] messageTray: Emit signal when notifications are
580c05
 enabled/disabled
580c05
580c05
Since the introduction of per-source notification policy in commit
580c05
098bd4509ba0, the NotificationPolicy::enable-changed signal has been
580c05
used to track the 'enable' settings. However as we never actually
580c05
emitted that signal, this never worked without a restart - oops.
580c05
580c05
https://bugzilla.gnome.org/show_bug.cgi?id=749279
580c05
---
580c05
 js/ui/messageTray.js | 2 ++
580c05
 1 file changed, 2 insertions(+)
580c05
580c05
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
580c05
index a034fc3..f1ce7f2 100644
580c05
--- a/js/ui/messageTray.js
580c05
+++ b/js/ui/messageTray.js
580c05
@@ -392,6 +392,8 @@ const NotificationApplicationPolicy = new Lang.Class({
580c05
 
580c05
     _changed: function(settings, key) {
580c05
         this.emit('policy-changed', key);
580c05
+        if (key == 'enable')
580c05
+            this.emit('enable-changed');
580c05
     },
580c05
 
580c05
     _canonicalizeId: function(id) {
580c05
-- 
580c05
2.3.6
580c05