[gnome-shell/wip/fmuellner/notification-redux: 76/88] calendar: Acknowledge read notifications



commit 1a45bc820152a119e9065971b467d7fe4231a1c3
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 fe3bff0..1a9475d 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]