[gnome-shell] network: show ad-hoc icon for ad-hoc networks
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network: show ad-hoc icon for ad-hoc networks
- Date: Mon, 11 Apr 2011 14:44:50 +0000 (UTC)
commit 82326846728f8be168ab026a5814292f7eaae1df
Author: Dan Winship <danw gnome org>
Date: Thu Apr 7 17:21:08 2011 -0400
network: show ad-hoc icon for ad-hoc networks
https://bugzilla.gnome.org/show_bug.cgi?id=646141
js/ui/status/network.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index ed8e712..a5b8a14 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -140,7 +140,10 @@ NMNetworkMenuItem.prototype = {
},
_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) {
@@ -2075,7 +2078,7 @@ NMApplet.prototype = {
let ap = dev.device.active_access_point;
let mode = dev.device.mode;
if (!ap) {
- if (mode != NetworkManager['80211Mode'].ADHOC) {
+ if (mode != NM80211Mode.ADHOC) {
log('An active wireless connection, in infrastructure mode, involves no access point?');
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]