]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-contact-list.c
Replace empathy_connection_get_protocol by tp_connection_parse_object_path
[empathy.git] / libempathy / empathy-tp-contact-list.c
index cf1617aec6ce92c0e9e1c8ccabf84e494b7cb135..6868e84a66d8911603f978a05912813b942bbe13 100644 (file)
@@ -305,6 +305,7 @@ tp_contact_list_group_request_handles_cb (TpConnection *connection,
                                                list);
 }
 
+/* This function takes ownership of handles array */
 static void
 tp_contact_list_group_add (EmpathyTpContactList *list,
                           const gchar          *group_name,
@@ -758,9 +759,8 @@ tp_contact_list_constructed (GObject *list)
 
        /* Check for protocols that does not support contact groups. We can
         * put all contacts into a special group in that case.
-        * FIXME: Default group should be an information in the profile
-        * FIXME: replace with tp_connection_parse_object_path once released */
-       protocol_name = empathy_connection_get_protocol (priv->connection, NULL);
+        * FIXME: Default group should be an information in the profile */
+       tp_connection_parse_object_path (priv->connection, &protocol_name, NULL);
        if (!tp_strdiff (protocol_name, "local-xmpp")) {
                priv->protocol_group = _("People nearby");
        }