diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-22 16:57:16 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-22 17:27:24 +0100 |
commit | 3b9b239c077637a60013b6824fe94c575747d5f1 (patch) | |
tree | c424294610c55c4078ff6cdc8569e2ed1d164d01 /src/connection-contact-info.c | |
parent | 37877bd0e9ab71ba54fa9960b4e3d8c3c5368e3a (diff) |
Use GVariantDict for fill_contact_attributes()gdbus-object
Diffstat (limited to 'src/connection-contact-info.c')
-rw-r--r-- | src/connection-contact-info.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/connection-contact-info.c b/src/connection-contact-info.c index dc160a59..d4716538 100644 --- a/src/connection-contact-info.c +++ b/src/connection-contact-info.c @@ -188,7 +188,7 @@ salut_conn_contact_info_fill_contact_attributes ( SalutConnection *self, const gchar *dbus_interface, TpHandle handle, - TpContactAttributeMap *attributes) + GVariantDict *attributes) { if (!tp_strdiff (dbus_interface, TP_IFACE_CONNECTION_INTERFACE_CONTACT_INFO1)) { @@ -218,10 +218,16 @@ salut_conn_contact_info_fill_contact_attributes ( } if (contact_info != NULL) - tp_contact_attribute_map_take_sliced_gvalue (attributes, - handle, TP_TOKEN_CONNECTION_INTERFACE_CONTACT_INFO1_INFO, - tp_g_value_slice_new_take_boxed ( - TP_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, contact_info)); + { + GValue value = G_VALUE_INIT; + + g_value_init (&value, TP_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST); + g_value_take_boxed (&value, contact_info); + g_variant_dict_insert_value (attributes, + TP_TOKEN_CONNECTION_INTERFACE_CONTACT_INFO1_INFO, + dbus_g_value_build_g_variant (&value)); + g_value_unset (&value); + } g_object_unref (contact_manager); return TRUE; |