[gnome-shell] notificationDaemon: Fix activating with a target
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] notificationDaemon: Fix activating with a target
- Date: Mon, 21 Oct 2013 20:50:30 +0000 (UTC)
commit 3ca1784ff40185065552af847520543a61ac45ca
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 21 16:21:22 2013 -0400
notificationDaemon: Fix activating with a target
Targets should not be unpacked, and action IDs should.
js/ui/notificationDaemon.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 12ca9b8..d08f49d 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]