From 3ca1784ff40185065552af847520543a61ac45ca Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 21 Oct 2013 16:21:22 -0400 Subject: [PATCH] notificationDaemon: Fix activating with a target Targets should not be unpacked, and action IDs should. --- js/ui/notificationDaemon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 12ca9b8c1..d08f49dc4 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -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() {