From 0d05bc9a63597da04e44c0a6b38c38ac325384ef Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 4 Nov 2009 10:42:21 -0800 Subject: [PATCH] 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. --- src/nm-device-interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-device-interface.c b/src/nm-device-interface.c index c8475df4c..f53a6028b 100644 --- a/src/nm-device-interface.c +++ b/src/nm-device-interface.c @@ -151,7 +151,7 @@ nm_device_interface_init (gpointer g_iface) "DeviceType", "DeviceType", 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_iface, g_param_spec_boolean (NM_DEVICE_INTERFACE_MANAGED,