mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
FdoNotificationDaemon: Emit ActivationToken before ActionInvoked signal
Two years ago FDO notifications spec gained the ability to pass an
activation token (often called startup id) let's finally implement it.
See: b9a470004d
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/358
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3199>
This commit is contained in:
parent
7d6f465a47
commit
bb73bf548c
3 changed files with 24 additions and 0 deletions
|
|
@ -27,6 +27,14 @@ export const NotificationDaemon = class extends ServiceImplementation {
|
|||
log(error.message);
|
||||
});
|
||||
|
||||
this._proxy.connectSignal('ActivationToken',
|
||||
(proxy, sender, params) => {
|
||||
const [id] = params;
|
||||
this._emitSignal(
|
||||
this._activeNotifications.get(id),
|
||||
'ActivationToken',
|
||||
new GLib.Variant('(us)', params));
|
||||
});
|
||||
this._proxy.connectSignal('ActionInvoked',
|
||||
(proxy, sender, params) => {
|
||||
const [id] = params;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue