[gnome-shell/wip/fmuellner/notification-redux+sass: 118/145] messageTray: Remove summary notification



commit be558b8d538ac03fd763ca79fb49b82cd2d53275
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Feb 14 03:19:49 2015 +0100

    messageTray: Remove summary notification
    
    Using a "There are too many notifications" notification is a bit odd,
    and we will address the issue differently soon. So rather than update
    the notification to do something else than opening the mostly empty and
    useless tray when clicked, remove it altogether.

 js/ui/messageTray.js |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index bda9dce..e785098 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2035,22 +2035,8 @@ const MessageTray = new Lang.Class({
             if (shouldShowNotification && 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 (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);
-                        notification.connect('activated', Lang.bind(this, function() {
-                            this.openTray();
-                        }));
-                        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]