From ea78b0af0ea3dd6654f2eeccc545e0a08a0ffe6c Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 3 Nov 2009 17:40:36 -0800 Subject: [PATCH] core: don't leak 'ifindex' into PropertiesChanged signal It's not part of the D-Bus spec; so it shouldn't be exposed. --- src/nm-device-ethernet.c | 2 +- src/nm-device-wifi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nm-device-ethernet.c b/src/nm-device-ethernet.c index 637107d6d9..672a902c28 100644 --- a/src/nm-device-ethernet.c +++ b/src/nm-device-ethernet.c @@ -1850,7 +1850,7 @@ nm_device_ethernet_class_init (NMDeviceEthernetClass *klass) "Ifindex", "Interface index", 0, G_MAXUINT32, 0, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | NM_PROPERTY_PARAM_NO_EXPORT)); /* Signals */ signals[PROPERTIES_CHANGED] = diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c index f2c9350fd0..c9022f0645 100644 --- a/src/nm-device-wifi.c +++ b/src/nm-device-wifi.c @@ -3589,7 +3589,7 @@ nm_device_wifi_class_init (NMDeviceWifiClass *klass) "Ifindex", "Interface index", 0, G_MAXUINT32, 0, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | NM_PROPERTY_PARAM_NO_EXPORT)); g_object_class_install_property (object_class, PROP_SCANNING, g_param_spec_boolean (NM_DEVICE_WIFI_SCANNING,