[gnome-shell/wip/message-tray: 31/35] messageTray: be sure to remove destroyed notifications from the notification stack
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 31/35] messageTray: be sure to remove destroyed notifications from the notification stack
- Date: Sun, 19 Aug 2012 23:15:34 +0000 (UTC)
commit b319e70a6d06ceca5286b3331bcde90859d9b0cd
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date: Sun Aug 19 17:32:37 2012 -0400
messageTray: be sure to remove destroyed notifications from the notification stack
This allows us to correctly identify when the notification stack is empty.
js/ui/messageTray.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 3151d6a..438beb0 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1285,6 +1285,8 @@ const SummaryItem = new Lang.Class({
notification.disconnect(stackedNotification.notificationDoneDisplayingId);
notification.disconnect(stackedNotification.notificationDestroyedId);
this._stackedNotifications.splice(i, 1);
+ if (notification.actor.get_parent() == this.notificationStack)
+ this.notificationStack.remove_actor(notification.actor);
this._contentUpdated();
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]