[gnome-control-center] network: Make NetVpn constructor consistent with other constructors
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Make NetVpn constructor consistent with other constructors
- Date: Tue, 5 Nov 2019 23:08:05 +0000 (UTC)
commit a75dbf033c00e969069941de0a32d74b2c0d8f30
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Oct 24 14:25:41 2019 +1300
network: Make NetVpn constructor consistent with other constructors
panels/network/cc-network-panel.c | 2 +-
panels/network/net-vpn.c | 4 ++--
panels/network/net-vpn.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index aad79df3c..be0000880 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -588,7 +588,7 @@ panel_add_vpn_device (CcNetworkPanel *self, NMConnection *connection)
return;
}
- net_vpn = net_vpn_new (connection, self->client);
+ net_vpn = net_vpn_new (self->client, connection);
gtk_widget_show (GTK_WIDGET (net_vpn));
gtk_container_add (GTK_CONTAINER (self->box_vpn), GTK_WIDGET (net_vpn));
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 74e031e53..b350e0de4 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -214,8 +214,8 @@ net_vpn_init (NetVpn *self)
}
NetVpn *
-net_vpn_new (NMConnection *connection,
- NMClient *client)
+net_vpn_new (NMClient *client,
+ NMConnection *connection)
{
NetVpn *self;
diff --git a/panels/network/net-vpn.h b/panels/network/net-vpn.h
index 5a7d8ae62..ea334be30 100644
--- a/panels/network/net-vpn.h
+++ b/panels/network/net-vpn.h
@@ -28,8 +28,8 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (NetVpn, net_vpn, NET, VPN, GtkBox)
-NetVpn *net_vpn_new (NMConnection *connection,
- NMClient *client);
+NetVpn *net_vpn_new (NMClient *client,
+ NMConnection *connection);
NMConnection *net_vpn_get_connection (NetVpn *vpn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]