[gnome-shell/wip/new-notifications: 569/569] nn
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/new-notifications: 569/569] nn
- Date: Tue, 3 Jun 2014 18:04:28 +0000 (UTC)
commit bf374ccabb82ec102d10c4f14c1ea2b22b8da8f5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed May 28 18:48:22 2014 -0400
nn
js/ui/messageTray.js | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index f848d01..d9a0298 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1263,16 +1263,12 @@ const NotificationDrawerList = new Lang.Class({
this._list.add_child(wrapper);
// XXX -- figure out a better policy for this
- if (notification.actor.get_parent() == null) {
- wrapper.add_child(notification.actor);
- } else {
- let id = notification.actor.connect('parent-set', Lang.bind(this, function() {
- if (notification.actor.get_parent() == null) {
- notification.actor.disconnect(id);
- wrapper.add_child(notification.actor);
- }
- }));
- }
+ let id = notification.actor.connect('parent-set', Lang.bind(this, function() {
+ if (notification.actor.get_parent() == null) {
+ notification.actor.disconnect(id);
+ wrapper.add_child(notification.actor);
+ }
+ }));
notification.connect('destroy', function() {
wrapper.destroy();
@@ -1734,8 +1730,8 @@ const MessageTray = new Lang.Class({
});
}
- this._notificationDrawer.pushNotification(notification);
this._updateState();
+ this._notificationDrawer.pushNotification(notification);
},
_hotCornersChanged: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]