[gnome-shell] messageTray: Don't destroy the notification when clicking on the close button



commit 92a01c67ba17858b048e335c75b9b328695a41b4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Sep 19 00:40:53 2012 -0300

    messageTray: Don't destroy the notification when clicking on the close button
    
    Clicking on the close button should simply hide the notification.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682237

 js/ui/messageTray.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 9c9221f..93ec828 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1592,11 +1592,7 @@ const MessageTray = new Lang.Class({
     _onCloseClicked: function() {
         if (this._notificationState == State.SHOWN) {
             this._notificationClosed = true;
-            this._notification.emit('done-displaying');
-
-                if (!this._notification.resident)
-                    this._notification.destroy();
-
+            this._updateState();
             this._notificationClosed = false;
         }
     },



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