network: show ad-hoc icon for ad-hoc networks

https://bugzilla.gnome.org/show_bug.cgi?id=646141
This commit is contained in:
Dan Winship 2011-04-07 17:21:08 -04:00
parent 2d855ce5cf
commit 8232684672

View File

@ -140,7 +140,10 @@ NMNetworkMenuItem.prototype = {
}, },
_getIcon: function() { _getIcon: function() {
return 'network-wireless-signal-' + signalToIcon(this.bestAP.strength); if (this.bestAP.mode == NM80211Mode.ADHOC)
return 'network-workgroup';
else
return 'network-wireless-signal-' + signalToIcon(this.bestAP.strength);
}, },
updateAccessPoints: function(accessPoints) { updateAccessPoints: function(accessPoints) {
@ -2075,7 +2078,7 @@ NMApplet.prototype = {
let ap = dev.device.active_access_point; let ap = dev.device.active_access_point;
let mode = dev.device.mode; let mode = dev.device.mode;
if (!ap) { if (!ap) {
if (mode != NetworkManager['80211Mode'].ADHOC) { if (mode != NM80211Mode.ADHOC) {
log('An active wireless connection, in infrastructure mode, involves no access point?'); log('An active wireless connection, in infrastructure mode, involves no access point?');
break; break;
} }