summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-10 18:23:09 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-10 18:23:09 +0000
commit5366cf41746ee6057036b1c1119a84f3fe80f627 (patch)
tree50c52c9ac5a295eb398ef39c14468573e682206c
parent1552d584ccfe953bef3be4977ce41d357980a9c1 (diff)
Use concrete dbus-glib parameterized types, not G_TYPE_VALUE_ARRAY
dbus_g_value_build_g_variant() doesn't yet understand how to build a tuple from a G_TYPE_VALUE_ARRAY, so my branch to use GDBus for everything will rely on using the full parameterized types.
-rw-r--r--telepathy-glib/presence-mixin.c6
-rw-r--r--tests/lib/broken-client-types-conn.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/telepathy-glib/presence-mixin.c b/telepathy-glib/presence-mixin.c
index c17dc8ab1..8b157e303 100644
--- a/telepathy-glib/presence-mixin.c
+++ b/telepathy-glib/presence-mixin.c
@@ -925,15 +925,11 @@ tp_presence_mixin_fill_contact_attributes (GObject *obj,
}
else
{
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- GType type = G_TYPE_VALUE_ARRAY;
- G_GNUC_END_IGNORE_DEPRECATIONS
-
presence = construct_presence_value_array (status, mixin_cls->statuses);
tp_presence_status_free (status);
tp_contact_attribute_map_take_sliced_gvalue (attributes, contact,
TP_TOKEN_CONNECTION_INTERFACE_PRESENCE1_PRESENCE,
- tp_g_value_slice_new_take_boxed (type, presence));
+ tp_g_value_slice_new_take_boxed (TP_STRUCT_TYPE_PRESENCE, presence));
}
return TRUE;
}
diff --git a/tests/lib/broken-client-types-conn.c b/tests/lib/broken-client-types-conn.c
index 6148f371b..7bdc76600 100644
--- a/tests/lib/broken-client-types-conn.c
+++ b/tests/lib/broken-client-types-conn.c
@@ -35,10 +35,6 @@ fill_contact_attributes (TpBaseConnection *base,
TpHandle contact,
TpContactAttributeMap *attributes)
{
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- GType type = G_TYPE_VALUE_ARRAY;
- G_GNUC_END_IGNORE_DEPRECATIONS
-
if (!tp_strdiff (dbus_interface,
TP_IFACE_CONNECTION_INTERFACE_CLIENT_TYPES1))
{
@@ -52,7 +48,7 @@ fill_contact_attributes (TpBaseConnection *base,
tp_contact_attribute_map_take_sliced_gvalue (attributes,
contact,
TP_TOKEN_CONNECTION_INTERFACE_PRESENCE1_PRESENCE,
- tp_g_value_slice_new_take_boxed (type, presence));
+ tp_g_value_slice_new_take_boxed (TP_STRUCT_TYPE_PRESENCE, presence));
}
}