From 61c5b8e7d26a931a15ae0e215da4aac93f688703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 22 Oct 2013 02:03:10 +0200 Subject: [PATCH] notificationDaemon: Pass the correct id to makeButton() The function expects the action's ID, not the notification's one. https://bugzilla.gnome.org/show_bug.cgi?id=710596 --- js/ui/notificationDaemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 42dedbdaf..22e4b9e37 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -436,7 +436,7 @@ const FdoNotificationDaemon = new Lang.Class({ if (actionId == 'default') { hasDefaultAction = true; } else { - notification.addButton(this._makeButton(id, label, useActionIcons), Lang.bind(this, function() { + notification.addButton(this._makeButton(actionId, label, useActionIcons), Lang.bind(this, function() { this._emitActionInvoked(ndata.id, actionId); })); }