summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-25 19:08:23 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-25 19:26:20 +0000
commite69c4493880f06332ba0621c5805cdedd5f2af49 (patch)
tree06ef71be21277c63d28606ec0d1b5b2aab68567f
parentfcc7a651674d444a63e378f198e6bdb5542f361b (diff)
empathy_call_observer_init: use TpChannelFilter high-level API
-rw-r--r--src/empathy-call-observer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/empathy-call-observer.c b/src/empathy-call-observer.c
index ffaa6138..3e506d65 100644
--- a/src/empathy-call-observer.c
+++ b/src/empathy-call-observer.c
@@ -288,10 +288,8 @@ empathy_call_observer_init (EmpathyCallObserver *self)
"Empathy.CallObserver", FALSE, observe_channel, self, NULL);
/* Observe Call channels */
- tp_base_client_add_observer_filter (self->priv->observer,
- g_variant_new_parsed ("{ %s: <%s>, %s: <%u> }",
- TP_PROP_CHANNEL_CHANNEL_TYPE, TP_IFACE_CHANNEL_TYPE_CALL1,
- TP_PROP_CHANNEL_TARGET_ENTITY_TYPE, (guint32) TP_ENTITY_TYPE_CONTACT));
+ tp_base_client_take_observer_filter (self->priv->observer,
+ tp_channel_filter_new_for_calls (TP_ENTITY_TYPE_CONTACT));
tp_base_client_set_observer_delay_approvers (self->priv->observer, TRUE);