notificationDaemon: Fix activating with a target

Targets should not be unpacked, and action IDs should.
This commit is contained in:
Jasper St. Pierre 2013-10-21 16:21:22 -04:00
parent b54d512f3f
commit 3ca1784ff4

View File

@ -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() {