[gnome-shell/wip/fmuellner/notification-redux+sass: 72/122] calendar: Acknowledge read notifications



commit d04ccf211abe2e6e90d824899f77b584bcdf56ff
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Feb 14 04:57:41 2015 +0100

    calendar: Acknowledge read notifications

 js/ui/calendar.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index c5faa30..5098e7e 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1294,6 +1294,9 @@ const NotificationSection = new Lang.Class({
         }));
         listEntry.connect('close', function() { notification.destroy(); });
         listEntry.notification = notification;
+        if (this.mapped)
+            notification.acknowledged = true;
+
         let listChild = this.addMessage(listEntry, this.actor.mapped);
         // TODO: Keep URGENT notifications on top
         this._list.set_child_below_sibling(listChild, null);


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