[gnome-shell/gnome-3-6] messageTray: Don't destroy the notification when clicking on the close button
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-6] messageTray: Don't destroy the notification when clicking on the close button
- Date: Mon, 12 Nov 2012 16:57:57 +0000 (UTC)
commit 5fb355ba2dfb788fa815d29d0347a2f390c0c379
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 c8fc9f4..25fc8a6 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1589,11 +1589,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]