]> git.0d.be Git - empathy.git/commitdiff
Adapt EmpathyCallHandler to the new API
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 27 May 2009 12:39:46 +0000 (14:39 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:55:33 +0000 (17:55 +0200)
libempathy/empathy-call-handler.c

index cd623c17e15ae3e51b193043b31ee89ea80496ac..8d70885b48fcd779db45aeb27fa5e84b93f4d769 100644 (file)
@@ -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);