[gnome-shell/wip/fmuellner/notification-redux+sass: 70/122] messageTray: Remove old-style summary notification
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/notification-redux+sass: 70/122] messageTray: Remove old-style summary notification
- Date: Tue, 17 Feb 2015 15:09:51 +0000 (UTC)
commit f4afb11a8146035ebabda3e5fb7bf9e7f8a03d6a
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 14 03:19:49 2015 +0100
messageTray: Remove old-style summary notification
js/ui/messageTray.js | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index d53a9d6..c6dc8bb 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1560,19 +1560,8 @@ const MessageTray = new Lang.Class({
if (hasNotifications && nextNotification) {
let limited = this._busy || Main.layoutManager.bottomMonitor.inFullscreen;
let showNextNotification = (!limited || nextNotification.forFeedback ||
nextNotification.urgency == Urgency.CRITICAL);
- if (showNextNotification) {
- let len = this._notificationQueue.length;
- if (false && len > 1) {
- this._notificationQueue.length = 0;
- let source = new SystemNotificationSource();
- this.add(source);
- let notification = new Notification(source, ngettext("%d new message", "%d new
messages", len).format(len));
- notification.setTransient(true);
- source.notify(notification);
- } else {
- this._showNotification();
- }
- }
+ if (showNextNotification)
+ this._showNotification();
}
} else if (this._notificationState == State.SHOWN) {
let expired = (this._userActiveWhileNotificationShown &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]