[gnome-shell/wip/fmuellner/notification-redux+sass: 130/145] messageTray: Remove overlaid close button
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/notification-redux+sass: 130/145] messageTray: Remove overlaid close button
- Date: Thu, 19 Feb 2015 18:25:15 +0000 (UTC)
commit b87506f2ca913e5e70b04b1f754210ae9c7952e9
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 11 20:35:50 2015 +0100
messageTray: Remove overlaid close button
The notification now includes its own close button
js/ui/messageTray.js | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 05bc175..762701f 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1483,11 +1483,6 @@ const MessageTray = new Lang.Class({
this._notification = null;
this._notificationClickedId = 0;
- this._closeButton = Util.makeCloseButton();
- this._closeButton.hide();
- this._closeButton.connect('clicked', Lang.bind(this, this._closeNotification));
- this.actor.add_actor(this._closeButton);
-
this._userActiveWhileNotificationShown = false;
this.idleMonitor = Meta.IdleMonitor.get_core();
@@ -1514,7 +1509,6 @@ const MessageTray = new Lang.Class({
Main.layoutManager.trayBox.add_actor(this.actor);
Main.layoutManager.trackChrome(this.actor);
- Main.layoutManager.trackChrome(this._closeButton);
global.screen.connect('in-fullscreen-changed', Lang.bind(this, this._updateState));
@@ -1551,14 +1545,6 @@ const MessageTray = new Lang.Class({
this._updateState();
},
- _closeNotification: function() {
- if (this._notificationState == State.SHOWN) {
- this._closeButton.hide();
- this._notification.emit('done-displaying');
- this._notification.destroy();
- }
- },
-
get queueCount() {
return this._notificationQueue.length;
},
@@ -2009,7 +1995,6 @@ const MessageTray = new Lang.Class({
if (notification.isTransient)
notification.destroy(NotificationDestroyedReason.EXPIRED);
- this._closeButton.hide();
this._pointerInNotification = false;
this._notificationRemoved = false;
this._notificationBin.child = null;
@@ -2038,7 +2023,6 @@ const MessageTray = new Lang.Class({
_onNotificationExpanded: function() {
let expandedY = - this.actor.height;
- this._closeButton.show();
// Don't animate the notification to its new position if it has shrunk:
// there will be a very visible "gap" that breaks the illusion.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]