aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-05-27 20:39:46 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:55:33 +0800
commit03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4 (patch)
tree84f27e6bb29a59c5bb5fbf9c953e176fe867ecf0
parent48345c658336e3731d7e35905df7dbec52491adf (diff)
downloadgsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.tar
gsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.tar.gz
gsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.tar.bz2
gsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.tar.lz
gsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.tar.xz
gsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.tar.zst
gsoc2013-empathy-03dd02c5cf379dc85b0c1dd6e5bf002d9a363bb4.zip
Adapt EmpathyCallHandler to the new API
-rw-r--r--libempathy/empathy-call-handler.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c
index cd623c17e..8d70885b4 100644
--- a/libempathy/empathy-call-handler.c
+++ b/libempathy/empathy-call-handler.c
@@ -529,7 +529,7 @@ empathy_call_handler_start_call (EmpathyCallHandler *handler)
EmpathyCallHandlerPriv *priv = GET_PRIV (handler);
EmpathyDispatcher *dispatcher;
TpConnection *connection;
- GStrv allowed;
+ GList *classes;
GValue *value;
GHashTable *request;
@@ -544,14 +544,15 @@ empathy_call_handler_start_call (EmpathyCallHandler *handler)
dispatcher = empathy_dispatcher_dup_singleton ();
connection = empathy_contact_get_connection (priv->contact);
- allowed = empathy_dispatcher_find_requestable_channel_classes
+ classes = empathy_dispatcher_find_requestable_channel_classes
(dispatcher, connection, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA,
TP_HANDLE_TYPE_CONTACT, NULL);
- if (!tp_strv_contains ((const gchar * const *) allowed,
- TP_IFACE_CHANNEL ".TargetHandle"))
+ if (classes == NULL)
return;
+ g_list_free (classes);
+
request = g_hash_table_new_full (g_str_hash, g_str_equal, NULL,
(GDestroyNotify) tp_g_value_slice_free);