[gnome-control-center] network: Replace deprecated nm_client_deactivate_connection
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Replace deprecated nm_client_deactivate_connection
- Date: Mon, 20 Jun 2022 02:36:59 +0000 (UTC)
commit 6911110111a9bc820c1403e3a03367c868fca08b
Author: Robert Ancell <robert ancell canonical com>
Date: Tue May 31 15:38:39 2022 +1200
network: Replace deprecated nm_client_deactivate_connection
panels/network/net-device-bluetooth.c | 2 +-
panels/network/net-device-mobile.c | 2 +-
panels/network/net-device-wifi.c | 2 +-
panels/network/net-vpn.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/net-device-bluetooth.c b/panels/network/net-device-bluetooth.c
index 7dff45b29..303f4a8af 100644
--- a/panels/network/net-device-bluetooth.c
+++ b/panels/network/net-device-bluetooth.c
@@ -114,7 +114,7 @@ device_off_switch_changed_cb (NetDeviceBluetooth *self)
for (i = 0; acs && i < acs->len; i++) {
a = (NMActiveConnection*)acs->pdata[i];
if (strcmp (nm_active_connection_get_uuid (a), uuid) == 0) {
- nm_client_deactivate_connection (self->client, a, NULL, NULL);
+ nm_client_deactivate_connection_async (self->client, a, NULL, NULL, NULL);
break;
}
}
diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c
index 46604934c..2c4012c35 100644
--- a/panels/network/net-device-mobile.c
+++ b/panels/network/net-device-mobile.c
@@ -504,7 +504,7 @@ device_off_switch_changed_cb (NetDeviceMobile *self)
for (i = 0; acs && i < acs->len; i++) {
a = (NMActiveConnection*)acs->pdata[i];
if (strcmp (nm_active_connection_get_uuid (a), uuid) == 0) {
- nm_client_deactivate_connection (self->client, a, NULL, NULL);
+ nm_client_deactivate_connection_async (self->client, a, NULL, NULL, NULL);
break;
}
}
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 4e9d66ad8..0a79016e9 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -743,7 +743,7 @@ stop_shared_connection (NetDeviceWifi *self)
devices = nm_active_connection_get_devices (c);
if (devices && devices->pdata[0] == self->device) {
- nm_client_deactivate_connection (self->client, c, NULL, NULL);
+ nm_client_deactivate_connection_async (self->client, c, NULL, NULL, NULL);
found = TRUE;
break;
}
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 1bbdcefb3..fad5e2019 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -127,7 +127,7 @@ device_off_toggled (NetVpn *self)
for (i = 0; acs && i < acs->len; i++) {
a = (NMActiveConnection*)acs->pdata[i];
if (strcmp (nm_active_connection_get_uuid (a), uuid) == 0) {
- nm_client_deactivate_connection (self->client, a, NULL, NULL);
+ nm_client_deactivate_connection_async (self->client, a, NULL, NULL, NULL);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]