core: don't leak 'device-type' into PropertiesChanged signal
The device type is set at object construction before the object is ever exported, thus the first time a client gets the value it will be correct, and the value should never change. As such, the property never needs to be part of PropertiesChanged signals.
This commit is contained in:
@@ -151,7 +151,7 @@ nm_device_interface_init (gpointer g_iface)
|
|||||||
"DeviceType",
|
"DeviceType",
|
||||||
"DeviceType",
|
"DeviceType",
|
||||||
0, G_MAXUINT32, NM_DEVICE_TYPE_UNKNOWN,
|
0, G_MAXUINT32, NM_DEVICE_TYPE_UNKNOWN,
|
||||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | NM_PROPERTY_PARAM_NO_EXPORT));
|
||||||
|
|
||||||
g_object_interface_install_property
|
g_object_interface_install_property
|
||||||
(g_iface, g_param_spec_boolean (NM_DEVICE_INTERFACE_MANAGED,
|
(g_iface, g_param_spec_boolean (NM_DEVICE_INTERFACE_MANAGED,
|
||||||
|
Reference in New Issue
Block a user