summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-04-27 13:46:22 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-04-27 15:06:17 +0200
commit355cebc58cb1a5cbfbed4937ac1ae4b7eac8502b (patch)
treec8060def3cf69ce2d7d2f2802d56a9924b21ba8e /examples
parent8318e418a1e34def29028ca6468f67f0f74b72fb (diff)
TpChannel: Deprecate all TpHandle APIs that have TpContact variant
https://bugs.freedesktop.org/show_bug.cgi?id=49213
Diffstat (limited to 'examples')
-rw-r--r--examples/client/inspect-channel.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/client/inspect-channel.c b/examples/client/inspect-channel.c
index a4987b6d3..b4492873b 100644
--- a/examples/client/inspect-channel.c
+++ b/examples/client/inspect-channel.c
@@ -64,18 +64,20 @@ channel_ready_cb (GObject *source,
if (tp_proxy_has_interface_by_id (channel,
TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP))
{
- const TpIntset *members = tp_channel_group_get_members (channel);
- TpIntsetFastIter group_iter;
- TpHandle member;
+ GPtrArray *members = tp_channel_group_dup_members_contacts (channel);
+ guint i;
printf ("Group members:\n");
- tp_intset_fast_iter_init (&group_iter, members);
-
- while (tp_intset_fast_iter_next (&group_iter, &member))
+ for (i = 0; i < members->len; i++)
{
- printf ("\tcontact #%u\n", member);
+ TpContact *member = g_ptr_array_index (members, i);
+
+ printf ("\tcontact #%u %s\n",
+ tp_contact_get_handle (member),
+ tp_contact_get_identifier (member));
}
+ g_ptr_array_unref (members);
}
data->exit_status = 0;