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 c5932c0f07
commit 29da720e6a

View File

@ -487,7 +487,7 @@ const NotificationDaemon = new Lang.Class({
},
_onTrayIconRemoved: function(o, icon) {
let source = this._lookupSource(icon.pid, null, true);
let source = this._lookupSource(null, icon.pid, true);
if (source)
source.destroy();
}