diff options
Diffstat (limited to 'tests/lib/broken-client-types-conn.c')
-rw-r--r-- | tests/lib/broken-client-types-conn.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/broken-client-types-conn.c b/tests/lib/broken-client-types-conn.c index c73898c32..1c6f3aff1 100644 --- a/tests/lib/broken-client-types-conn.c +++ b/tests/lib/broken-client-types-conn.c @@ -13,7 +13,8 @@ #include "broken-client-types-conn.h" -#include <telepathy-glib/interfaces.h> +#include <telepathy-glib/telepathy-glib.h> +#include <telepathy-glib/telepathy-glib-dbus.h> G_DEFINE_TYPE_WITH_CODE (TpTestsBrokenClientTypesConnection, tp_tests_broken_client_types_connection, @@ -35,6 +36,9 @@ broken_fill_client_types ( GHashTable *attributes) { guint i; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + GType type = G_TYPE_VALUE_ARRAY; + G_GNUC_END_IGNORE_DEPRECATIONS for (i = 0; i < contacts->len; i++) { @@ -49,7 +53,7 @@ broken_fill_client_types ( tp_contacts_mixin_set_contact_attribute (attributes, handle, TP_TOKEN_CONNECTION_INTERFACE_SIMPLE_PRESENCE_PRESENCE, - tp_g_value_slice_new_take_boxed (G_TYPE_VALUE_ARRAY, presence)); + tp_g_value_slice_new_take_boxed (type, presence)); } } |