[gnome-shell/gnome-3-6] messageTray: Hide notification close button immediately on click
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-6] messageTray: Hide notification close button immediately on click
- Date: Mon, 12 Nov 2012 16:58:02 +0000 (UTC)
commit 423d8ab5ec577cfbd157d7aa24d129290f142cb2
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Oct 25 22:07:12 2012 +0200
messageTray: Hide notification close button immediately on click
Having the close button move away from under the pointer after
clicking it is confusing and distracts from the main transition,
which is hiding the notification. Just hide it immediately.
https://bugzilla.gnome.org/show_bug.cgi?id=682237
js/ui/messageTray.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 25fc8a6..86bd6ed 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1588,6 +1588,7 @@ const MessageTray = new Lang.Class({
_onCloseClicked: function() {
if (this._notificationState == State.SHOWN) {
+ this._closeButton.hide();
this._notificationClosed = true;
this._updateState();
this._notificationClosed = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]