[gnome-shell/wip/message-tray-menu: 99/109] network: Don't pass this._connections to the VPN section



commit 03b5fc43bd4ba9b8410a71eb0a87c32c52fefa88
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.

 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 0f25d8e..e4a4ccd 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1209,8 +1209,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();
@@ -1441,7 +1441,7 @@ const NMApplet = new Lang.Class({
         this._devices.wwan.section.actor.hide();
         this.menu.addMenuItem(this._devices.wwan.section);
 
-        this._vpnSection = new NMVPNSection(this._client, this._connections);
+        this._vpnSection = new NMVPNSection(this._client);
         this.menu.addMenuItem(this._vpnSection.section);
 
         this._readConnections();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]