From 1d26161d2388e34a6fdcfb52e43e1ebb3ac5a13f Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 31 Aug 2013 22:33:03 -0400 Subject: [PATCH] network: Adapt to the new NetworkManager API names "physical connection" has been replaced with "primary connection" --- js/ui/status/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 79cb71155..879d7bfa1 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;