messageList: Use St.Bin as message container and use clutter to manage the list

When messages are added to the message list, we create a container for those,
however since now the messages are actor themselves we can just create a list
item actor that holds the message actor and refer to the message parent in order
to get their container.

This allows to remove the obj container map we used, using the native clutter
parent-child hierarchy and handle signal connections cleanly.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559
This commit is contained in:
Marco Trevisan (Treviño)
2019-05-13 20:02:26 +02:00
committed by Florian Müllner
parent 4dea1f801a
commit 9bb12f6f87
2 changed files with 51 additions and 45 deletions

View File

@ -999,9 +999,10 @@ class NotificationSection extends MessageList.MessageListSection {
if (!this.mapped)
return;
for (let message of this._messages.keys())
this._messages.forEach(message => {
if (message.notification.urgency != MessageTray.Urgency.CRITICAL)
message.notification.acknowledged = true;
});
}
_shouldShow() {