[gnome-shell] NetworkMenu: fix updating the access point strength



commit 3c3ea2f5755b88b22d5b954a83ae1616335fa027
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Fri Apr 1 15:42:00 2011 +0200

    NetworkMenu: fix updating the access point strength
    
    A notify signal does not include the new value of the property in
    its signature, so the handler was trying to compare a GParamSpec with
    a number when updating. Fix it to always retrieve the value from the
    object.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646443

 js/ui/status/network.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 8852188..752a9f6 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -132,8 +132,8 @@ NMNetworkMenuItem.prototype = {
         }
     },
 
-    _updated: function(ap, strength) {
-        if (strength > this.bestAP.strength)
+    _updated: function(ap) {
+        if (ap.strength > this.bestAP.strength)
             this.bestAP = ap;
 
         this._signalIcon.icon_name = this._getIcon();



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