[gnome-shell/wip/fmuellner/notification-redux: 82/82] calendar: Don't acknowledge urgent notifications
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/notification-redux: 82/82] calendar: Don't acknowledge urgent notifications
- Date: Sat, 14 Feb 2015 10:13:15 +0000 (UTC)
commit 05b9e9f9c9671056069e96342bdd9bc41bfa3b5c
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 14 11:01:51 2015 +0100
calendar: Don't acknowledge urgent notifications
We still want them to show up as banner after closing the calendar.
js/ui/calendar.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 6b3ec0b..de490a1 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1301,7 +1301,7 @@ const NotificationSection = new Lang.Class({
}));
listEntry.connect('close', function() { notification.destroy(); });
listEntry.notification = notification;
- if (this.mapped)
+ if (this.mapped && !notification.urgency != MessageTray.Urgency.CRITICAL)
notification.acknowledged = true;
let children = this._list.get_children();
@@ -1325,7 +1325,8 @@ const NotificationSection = new Lang.Class({
if (!this.actor.mapped)
return;
this._messages.forEach(function(m) {
- m.notification.acknowledged = true;
+ if (m.notification.urgency != MessageTray.Urgency.CRITICAL)
+ m.notification.acknowledged = true;
});
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]