[gnome-shell/gnome-3-2] notificationDaemon: fix order of arguments to _lookupSource()



commit d606ce6776c36209d6095dd70f75f2c4834677af
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Jan 19 12:33:15 2012 -0500

    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

 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 111f6b4..0a4e50e 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -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();
     }



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