summaryrefslogtreecommitdiff
path: root/examples/client
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-30 09:46:07 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-30 09:46:07 +0200
commit9ace209ddec046bb514200df8a4d82021fbd49fe (patch)
tree60d7d6972cafbed10e3e5c599d1cf32b127ef41c /examples/client
parentcee24813a448f792c2846a474cc31fa1c2d10625 (diff)
downloadtelepathy-glib-9ace209ddec046bb514200df8a4d82021fbd49fe.tar.gz
media-observer: use more TpChannel accessors
Diffstat (limited to 'examples/client')
-rw-r--r--examples/client/media-observer.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/examples/client/media-observer.c b/examples/client/media-observer.c
index 79eb1ab58..3c2ebe8cf 100644
--- a/examples/client/media-observer.c
+++ b/examples/client/media-observer.c
@@ -24,12 +24,8 @@ chan_invalidated_cb (TpProxy *proxy,
gpointer user_data)
{
TpChannel *channel = TP_CHANNEL (proxy);
- GHashTable *props;
- props = tp_channel_borrow_immutable_properties (channel);
-
- g_print ("Call with %s terminated\n",
- tp_asv_get_string (props, TP_PROP_CHANNEL_TARGET_ID));
+ g_print ("Call with %s terminated\n", tp_channel_get_identifier (channel));
g_object_unref (channel);
}
@@ -52,21 +48,19 @@ observe_channels_cb (TpSimpleObserver *self,
for (l = channels; l != NULL; l = g_list_next (l))
{
TpChannel *channel = l->data;
- GHashTable *props;
gboolean requested;
if (tp_strdiff (tp_channel_get_channel_type (channel),
TP_IFACE_CHANNEL_TYPE_CALL))
continue;
- props = tp_channel_borrow_immutable_properties (channel);
- requested = tp_asv_get_boolean (props, TP_PROP_CHANNEL_REQUESTED, NULL);
+ requested = tp_channel_get_requested (channel);
g_print ("Observing %s %s call %s %s\n",
recovering? "existing": "new",
requested? "outgoing": "incoming",
requested? "to": "from",
- tp_asv_get_string (props, TP_PROP_CHANNEL_TARGET_ID));
+ tp_channel_get_identifier (channel));
g_signal_connect (g_object_ref (channel), "invalidated",
G_CALLBACK (chan_invalidated_cb), NULL);