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:

committed by
Florian Müllner

parent
9ac4c7da53
commit
1d1d9806f3
@ -2034,10 +2034,10 @@ class Indicator extends SystemIndicator {
|
||||
source,
|
||||
title: _('Connection failed'),
|
||||
body: _('Activation of network connection failed'),
|
||||
iconName: 'network-error-symbolic',
|
||||
urgency: MessageTray.Urgency.HIGH,
|
||||
isTransient: true,
|
||||
});
|
||||
this._notification.iconName = 'network-error-symbolic';
|
||||
this._notification.setUrgency(MessageTray.Urgency.HIGH);
|
||||
this._notification.setTransient(true);
|
||||
this._notification.connect('destroy',
|
||||
() => (this._notification = null));
|
||||
|
||||
|
Reference in New Issue
Block a user