[gnome-shell] notificationDaemon: Pass the correct id to makeButton()



commit 61c5b8e7d26a931a15ae0e215da4aac93f688703
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Oct 22 02:03:10 2013 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 42dedbd..22e4b9e 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);
                     }));
                 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]