summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-vpn.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-09-22 10:57:57 +0200
committerThomas Haller <thaller@redhat.com>2019-09-30 08:23:19 +0200
commitd534b6d07a235199af3044a6f156d2965dc0ddc0 (patch)
treeb7cfed943edf5ca589606e6489224e3a6c7726f6 /libnm-core/nm-setting-vpn.c
parent3f36f6915629d9a98f52fb266f82274785bb49c6 (diff)
downloadNetworkManager-d534b6d07a235199af3044a6f156d2965dc0ddc0.tar.gz
libnm: deduplicate NMSettInfoPropertType instances
There is no need to keep duplicate instances. Before we had 89 distinct property types, now there are 49.
Diffstat (limited to 'libnm-core/nm-setting-vpn.c')
-rw-r--r--libnm-core/nm-setting-vpn.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libnm-core/nm-setting-vpn.c b/libnm-core/nm-setting-vpn.c
index da1b8e2cad..d51843339f 100644
--- a/libnm-core/nm-setting-vpn.c
+++ b/libnm-core/nm-setting-vpn.c
@@ -1129,12 +1129,7 @@ nm_setting_vpn_class_init (NMSettingVpnClass *klass)
G_TYPE_HASH_TABLE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
-
- _properties_override_add_transform (properties_override,
- obj_properties[PROP_DATA],
- NM_G_VARIANT_TYPE ("a{ss}"),
- _nm_utils_strdict_to_dbus,
- _nm_utils_strdict_from_dbus);
+ _properties_override_add_gobj (properties_override, obj_properties[PROP_DATA], &nm_sett_info_propert_type_strdict);
/**
* NMSettingVpn:secrets: (type GHashTable(utf8,utf8)):
@@ -1156,7 +1151,6 @@ nm_setting_vpn_class_init (NMSettingVpnClass *klass)
G_PARAM_READWRITE |
NM_SETTING_PARAM_SECRET |
G_PARAM_STATIC_STRINGS);
-
_properties_override_add_override (properties_override,
obj_properties[PROP_SECRETS],
NM_G_VARIANT_TYPE ("a{ss}"),