From 9ec2d5d6092b38e115737663c679fae5debcf1e2 Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Tue, 8 Feb 2011 02:06:42 -0500 Subject: [PATCH] Add mouseButtonClicked argument to the callback for St.Button 'clicked' signal in Notification St.Button 'clicked' signal now has two arguments, and because we are also passing an action id as an argument to the _onActionInvoked() callback, we need to have the number of the signal arguments reflected accurately in the function arguments. https://bugzilla.gnome.org/show_bug.cgi?id=641809 --- js/ui/messageTray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 47b8294bd..db9913c5b 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -712,7 +712,7 @@ Notification.prototype = { return false; }, - _onActionInvoked: function(actor, id) { + _onActionInvoked: function(actor, mouseButtonClicked, id) { this.emit('action-invoked', id); if (!this.resident) { // We don't hide a resident notification when the user invokes one of its actions,