diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-05-28 18:48:22 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-06-03 13:51:59 -0400 |
commit | bf374ccabb82ec102d10c4f14c1ea2b22b8da8f5 (patch) | |
tree | cf82715bcb5c7f96384ec4a4dd8c0ee1b4f4f6df | |
parent | 02060d2bbc1b85b03e07ba1f99ac8c906274be52 (diff) | |
download | gnome-shell-wip/new-notifications.tar.gz |
-rw-r--r-- | 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 f848d0116..d9a0298ed 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() { |