diff options
author | Dan Williams <dcbw@redhat.com> | 2008-10-27 17:36:18 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2008-10-27 17:36:18 +0000 |
commit | c438326110372b080d34b8d9b468c901b9e8f365 (patch) | |
tree | 2371c4c87db8d2aa11e6f207971c234bb6ef45df /libnm-util/nm-setting-vpn.c | |
parent | 519f8cd6c9fbbea83a1a07617b21e5247608037c (diff) | |
download | NetworkManager-c438326110372b080d34b8d9b468c901b9e8f365.tar.gz |
2008-10-27 Dan Williams <dcbw@redhat.com>
Patch from Tambet Ingo <tambet@gmail.com>
* libnm-util/nm-setting.h
libnm-util/nm-setting.c
- Make properties private and add accessor functions
* libnm-util/nm-connection.c
libnm-util/nm-setting-8021x.c
libnm-util/nm-setting-cdma.c
libnm-util/nm-setting-connection.c
libnm-util/nm-setting-gsm.c
libnm-util/nm-setting-ip4-config.c
libnm-util/nm-setting-ip6-config.c
libnm-util/nm-setting-ppp.c
libnm-util/nm-setting-pppoe.c
libnm-util/nm-setting-serial.c
libnm-util/nm-setting-template.c
libnm-util/nm-setting-vpn.c
libnm-util/nm-setting-wired.c
libnm-util/nm-setting-wireless-security.c
libnm-util/nm-setting-wireless.c
system-settings/plugins/keyfile/reader.c
system-settings/plugins/keyfile/writer.c
- Use setting accessors
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'libnm-util/nm-setting-vpn.c')
-rw-r--r-- | libnm-util/nm-setting-vpn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-util/nm-setting-vpn.c b/libnm-util/nm-setting-vpn.c index 0c2118312b..d7fbf3b2e5 100644 --- a/libnm-util/nm-setting-vpn.c +++ b/libnm-util/nm-setting-vpn.c @@ -140,7 +140,7 @@ destroy_one_secret (gpointer data) static void nm_setting_vpn_init (NMSettingVPN *setting) { - NM_SETTING (setting)->name = g_strdup (NM_SETTING_VPN_SETTING_NAME); + g_object_set (setting, NM_SETTING_NAME, NM_SETTING_VPN_SETTING_NAME, NULL); setting->data = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); setting->secrets = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, destroy_one_secret); |