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
@ -39,11 +39,15 @@ export class WindowAttentionHandler {
|
||||
|
||||
let [title, body] = this._getTitleAndBanner(app, window);
|
||||
|
||||
let notification = new MessageTray.Notification({source, title, body});
|
||||
let notification = new MessageTray.Notification({
|
||||
source,
|
||||
title,
|
||||
body,
|
||||
forFeedback: true,
|
||||
});
|
||||
notification.connect('activated', () => {
|
||||
source.open();
|
||||
});
|
||||
notification.setForFeedback(true);
|
||||
|
||||
source.addNotification(notification);
|
||||
|
||||
|
Reference in New Issue
Block a user