[gnome-shell/wip/aggregate-menu: 31/58] network: Remove the enable networking item
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 31/58] network: Remove the enable networking item
- Date: Wed, 17 Jul 2013 18:58:51 +0000 (UTC)
commit a2f919d126485667eb5a0a400af905e7c886ae43
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 29 15:35:14 2013 -0400
network: Remove the enable networking item
js/ui/status/network.js | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index b8644a7..60dae84 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1354,15 +1354,6 @@ const NMApplet = new Lang.Class({
if (!this._client || !this._settings)
return;
- this._statusSection = new PopupMenu.PopupMenuSection();
- this._statusItem = new PopupMenu.PopupMenuItem('', { reactive: false });
- this._statusSection.addMenuItem(this._statusItem);
- this._statusSection.addAction(_("Enable networking"), Lang.bind(this, function() {
- this._client.networking_enabled = true;
- }));
- this._statusSection.actor.hide();
- this.menu.addMenuItem(this._statusSection);
-
this._activeConnections = [ ];
this._connections = [ ];
@@ -1745,8 +1736,6 @@ const NMApplet = new Lang.Class({
return;
this._devicesHidden = false;
- this._statusSection.actor.hide();
-
for (let category in this._devices)
this._devices[category].section.actor.show();
},
@@ -1758,8 +1747,6 @@ const NMApplet = new Lang.Class({
if (!this._client.networking_enabled) {
this.setIcon('network-offline-symbolic');
this._hideDevices();
- this._statusItem.label.text = _("Networking is disabled");
- this._statusSection.actor.show();
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]