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,6 +140,9 @@ NMNetworkMenuItem.prototype = {
}, },
_getIcon: function() { _getIcon: function() {
if (this.bestAP.mode == NM80211Mode.ADHOC)
return 'network-workgroup';
else
return 'network-wireless-signal-' + signalToIcon(this.bestAP.strength); return 'network-wireless-signal-' + signalToIcon(this.bestAP.strength);
}, },
@ -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;
} }