network: Make NetVpn constructor consistent with other constructors
This commit is contained in:
parent
93a269f8df
commit
a75dbf033c
3 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue