[gnome-shell] network: Don't pass this._connections to the VPN section
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network: Don't pass this._connections to the VPN section
- Date: Wed, 15 May 2013 15:15:45 +0000 (UTC)
commit 30c64baa7ff26f4d56c2f2a6273effda6a0e4ee6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 29 13:12:14 2013 -0400
network: Don't pass this._connections to the VPN section
It's always empty by this point.
https://bugzilla.gnome.org/show_bug.cgi?id=700322
js/ui/status/network.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index aa0f30d..6d57c3f 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1374,8 +1374,8 @@ const NMVPNSection = new Lang.Class({
Extends: NMConnectionBased,
category: NMConnectionCategory.VPN,
- _init: function(client, connections) {
- this.parent(connections);
+ _init: function(client) {
+ this.parent([]);
this._client = client;
this.section = new PopupMenu.PopupMenuSection();
@@ -1631,7 +1631,7 @@ const NMApplet = new Lang.Class({
this.menu.addMenuItem(this._devices.wwan.section);
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
- this._vpnSection = new NMVPNSection(this._client, this._connections);
+ this._vpnSection = new NMVPNSection(this._client);
this._vpnSection.connect('activation-failed', Lang.bind(this, this._onActivationFailed));
this.menu.addMenuItem(this._vpnSection.section);
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]