mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 09:20:32 +01:00
vpn-manager: fix PropertiesChanged on NMVpnConnection
We need to register NMVpnConnection's properties with the PropertiesChanged signal (which it inherits from NMActiveConnection) or it will ignore them. https://bugzilla.gnome.org/show_bug.cgi?id=701713
This commit is contained in:
parent
3b498b3ec0
commit
8feb3878f9
1 changed files with 3 additions and 4 deletions
|
|
@ -39,7 +39,6 @@
|
|||
#include "nm-logging.h"
|
||||
#include "nm-utils.h"
|
||||
#include "nm-active-connection.h"
|
||||
#include "nm-properties-changed-signal.h"
|
||||
#include "nm-dbus-glib-types.h"
|
||||
#include "NetworkManagerUtils.h"
|
||||
#include "nm-netlink-utils.h"
|
||||
|
|
@ -99,7 +98,6 @@ typedef struct {
|
|||
#define NM_VPN_CONNECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_VPN_CONNECTION, NMVPNConnectionPrivate))
|
||||
|
||||
enum {
|
||||
PROPERTIES_CHANGED,
|
||||
VPN_STATE_CHANGED,
|
||||
INTERNAL_STATE_CHANGED,
|
||||
|
||||
|
|
@ -1621,7 +1619,8 @@ nm_vpn_connection_class_init (NMVPNConnectionClass *connection_class)
|
|||
0, NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (object_class),
|
||||
&dbus_glib_nm_vpn_connection_object_info);
|
||||
dbus_g_manager_register_exported_type (nm_dbus_manager_get (),
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
&dbus_glib_nm_vpn_connection_object_info);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue