[gnome-shell] network: Adapt to the new NetworkManager API names



commit 1d26161d2388e34a6fdcfb52e43e1ebb3ac5a13f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Aug 31 22:33:03 2013 -0400

    network: Adapt to the new NetworkManager API names
    
    "physical connection" has been replaced with "primary connection"

 js/ui/status/network.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 79cb711..879d7bf 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1286,7 +1286,7 @@ const NMApplet = new Lang.Class({
         this._client.connect('notify::manager-running', Lang.bind(this, this._syncNMState));
         this._client.connect('notify::networking-enabled', Lang.bind(this, this._syncNMState));
         this._client.connect('notify::state', Lang.bind(this, this._syncNMState));
-        this._client.connect('notify::physical-connection', Lang.bind(this, this._syncMainConnection));
+        this._client.connect('notify::primary-connection', Lang.bind(this, this._syncMainConnection));
         this._client.connect('notify::active-connections', Lang.bind(this, this._syncVPNConnections));
         this._client.connect('device-added', Lang.bind(this, this._deviceAdded));
         this._client.connect('device-removed', Lang.bind(this, this._deviceRemoved));
@@ -1430,7 +1430,7 @@ const NMApplet = new Lang.Class({
     _getMainConnection: function() {
         let connection;
 
-        connection = this._client.get_physical_connection();
+        connection = this._client.get_primary_connection();
         if (connection) {
             this._ensureActiveConnectionProps(connection);
             return connection;


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