messageTray: Allow settings gobject properties of Source on creation
This also makes the `icon` property of `Source` writable so that it can be set during creation instead of overriding the getter of the icon property. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>
This commit is contained in:

committed by
Marge Bot

parent
c63d67c9af
commit
932ccac1c2
@ -740,7 +740,10 @@ class NetworkAgent {
|
||||
}
|
||||
|
||||
_showNotification(requestId, connection, settingName, hints, flags) {
|
||||
let source = new MessageTray.Source(_('Network Manager'), 'network-transmit-receive');
|
||||
const source = new MessageTray.Source({
|
||||
title: _('Network Manager'),
|
||||
iconName: 'network-transmit-receive',
|
||||
});
|
||||
source.policy = new MessageTray.NotificationApplicationPolicy('gnome-network-panel');
|
||||
|
||||
let title, body;
|
||||
|
Reference in New Issue
Block a user