diff options
author | Dan Winship <danw@gnome.org> | 2012-02-20 11:09:25 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-02-20 11:48:31 -0500 |
commit | 2c6bade5b938ab20e1703c308f1127284c9608ed (patch) | |
tree | d61582ce863a040b3b16d51fe38c1d500aa852d6 /libnm-glib/nm-active-connection.c | |
parent | 7b9c728b851a3864c321df6488f602f37dedc6cb (diff) | |
download | NetworkManager-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.c | 4 |
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 }, }; |