GNOME Bugzilla – Bug 646443
network: fix updating the access point strength
Last modified: 2011-04-11 14:44:28 UTC
See patch...
Created attachment 184874 [details] [review] 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.
Comment on attachment 184874 [details] [review] NetworkMenu: fix updating the access point strength looks good, but it looks like NMApplet._notifyActiveConnection() has the same problem
What's the impact of this on users?
Actually, the impact is pretty small; the top bar icon updates correctly, so this only affects the icons in the menu itself. And the menu gets rebuilt any time a new wireless network appears, or any time the wifi device changes state, so a lot of times the icon in the menu will be correct anyway. So it's 3.0.1-able. (The other issue I mentioned is also not a problem, because most of the code in that callback is ignored because it would duplicate stuff nm-applet is already doing.)
(In reply to comment #4) > Actually, the impact is pretty small; the top bar icon updates correctly, so > this only affects the icons in the menu itself. And the menu gets rebuilt any > time a new wireless network appears, or any time the wifi device changes state, > so a lot of times the icon in the menu will be correct anyway. So it's > 3.0.1-able. The impact is even less: the bug exists only if you have more than one AP for the same network (SSID), in which case it fails to find the best one. But I still don't see strength updates at home (where I have just one AP), so the bug is somewhere else. > (The other issue I mentioned is also not a problem, because most of the code in > that callback is ignored because it would duplicate stuff nm-applet is already > doing.) _notifyActiveConnection looks right to me, active is the NMActiveConnection object that is emitting the signal.
Comment on attachment 184874 [details] [review] NetworkMenu: fix updating the access point strength (updating status since I was wrong about _notifyActiveConnection needing to be changed)
Attachment 184874 [details] pushed as 3c3ea2f - NetworkMenu: fix updating the access point strength