notificationDaemon: fix order of arguments to _lookupSource()

The order of arguments passed to _lookupSource() was wrong, causing
problems when tray icons were removed.

https://bugzilla.gnome.org/show_bug.cgi?id=664138
This commit is contained in:
Owen W. Taylor 2012-01-19 12:33:15 -05:00
parent 7ff63a26b7
commit d606ce6776

View File

@ -480,7 +480,7 @@ NotificationDaemon.prototype = {
},
_onTrayIconRemoved: function(o, icon) {
let source = this._lookupSource(icon.pid, null, true);
let source = this._lookupSource(null, icon.pid, true);
if (source)
source.destroy();
}