mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
notification: Use the same Source for showing system notifications
This drops all subclasses of `MessageTray.Source` that were used to display system notifications. Now the `Source` returned from `MessageTray.getSystemSource()` is used. Ensure also that properties and methods that where set on the `Source` are moved to the `Notification` object itself. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3156>
This commit is contained in:
parent
3faf1caead
commit
c1ff00c01b
9 changed files with 65 additions and 178 deletions
|
|
@ -50,8 +50,7 @@ export async function run() {
|
|||
|
||||
// notification
|
||||
console.debug('Show notification message');
|
||||
const source = new MessageTray.SystemNotificationSource();
|
||||
Main.messageTray.add(source);
|
||||
const source = new MessageTray.getSystemSource();
|
||||
|
||||
Scripting.scriptEvent('notificationShowStart');
|
||||
source.connect('notification-show',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue