summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-active-connection.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-02-20 11:09:25 -0500
committerDan Winship <danw@gnome.org>2012-02-20 11:48:31 -0500
commit2c6bade5b938ab20e1703c308f1127284c9608ed (patch)
treed61582ce863a040b3b16d51fe38c1d500aa852d6 /libnm-glib/nm-active-connection.c
parent7b9c728b851a3864c321df6488f602f37dedc6cb (diff)
downloadNetworkManager-2c6bade5b938ab20e1703c308f1127284c9608ed.tar.gz
libnm-glib: fix some property-handling warnings
Fix handle_object_array_property() to deal with receiving an empty list correctly (rather than warning and leaving the property with its previous value still set). Also, add two more untracked properties that shouldn't be warned about (NMDevice:device-type and NMActiveConnection:vpn, both of which are only used at construct time).
Diffstat (limited to 'libnm-glib/nm-active-connection.c')
-rw-r--r--libnm-glib/nm-active-connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm-glib/nm-active-connection.c b/libnm-glib/nm-active-connection.c
index 4e614848b2..59d8a6affe 100644
--- a/libnm-glib/nm-active-connection.c
+++ b/libnm-glib/nm-active-connection.c
@@ -438,6 +438,10 @@ register_properties (NMActiveConnection *connection)
{ NM_ACTIVE_CONNECTION_DEFAULT, &priv->is_default },
{ NM_ACTIVE_CONNECTION_DEFAULT6, &priv->is_default6 },
{ NM_ACTIVE_CONNECTION_MASTER, &priv->master },
+
+ /* not tracked after construction time */
+ { "vpn", NULL },
+
{ NULL },
};