notification: Stop using old setter methods of MessageTray.Notification

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:
Julian Sparber
2024-02-14 11:35:03 +01:00
committed by Florian Müllner
parent 9ac4c7da53
commit 1d1d9806f3
8 changed files with 40 additions and 28 deletions

View File

@ -258,9 +258,13 @@ class Indicator extends SystemIndicator {
this._notification.destroy();
const source = MessageTray.getSystemSource();
this._notification = new MessageTray.Notification({source, title, body});
this._notification.iconName = 'thunderbolt-symbolic';
this._notification.setUrgency(MessageTray.Urgency.HIGH);
this._notification = new MessageTray.Notification({
source,
title,
body,
iconName: 'thunderbolt-symbolic',
urgency: MessageTray.Urgency.HIGH,
});
this._notification.connect('destroy', () => {
this._notification = null;
});