notificationDaemon: Fix activating with a target
Targets should not be unpacked, and action IDs should.
This commit is contained in:
parent
b54d512f3f
commit
3ca1784ff4
@ -736,7 +736,7 @@ const GtkNotificationDaemonNotification = new Lang.Class({
|
||||
}
|
||||
|
||||
this._defaultAction = defaultAction ? defaultAction.unpack() : null;
|
||||
this._defaultActionTarget = defaultActionTarget ? defaultActionTarget.unpack() : null;
|
||||
this._defaultActionTarget = defaultActionTarget;
|
||||
|
||||
this.update(title.unpack(), body ? body.unpack() : null, { gicon: gicon });
|
||||
},
|
||||
@ -754,7 +754,7 @@ const GtkNotificationDaemonNotification = new Lang.Class({
|
||||
|
||||
_onButtonClicked: function(button) {
|
||||
let { "action": action, "action-target": actionTarget } = button;
|
||||
this._activateAction(action, actionTarget);
|
||||
this._activateAction(action.unpack(), actionTarget);
|
||||
},
|
||||
|
||||
_onClicked: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user