]> git.0d.be Git - empathy.git/commitdiff
use tp_connection_dup_contact_info_supported_fields()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 11 Sep 2012 12:45:20 +0000 (14:45 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 11 Sep 2012 13:10:44 +0000 (15:10 +0200)
tp_connection_get_contact_info_supported_fields() has been deprecated

libempathy-gtk/empathy-user-info.c

index 592bd45dadb9ae5b96ca9637034b0c717e7ce91e..4c9a2deee7f62207c0f2b4392a59aeb6fc8518ca 100644 (file)
@@ -184,7 +184,7 @@ fill_contact_info_grid (EmpathyUserInfo *self)
 
   connection = tp_account_get_connection (self->priv->account);
   contact = tp_connection_get_self_contact (connection);
-  specs = tp_connection_get_contact_info_supported_fields (connection);
+  specs = tp_connection_dup_contact_info_supported_fields (connection);
   info = tp_contact_dup_contact_info (contact);
 
   /* Look at the fields set in our vCard */
@@ -304,7 +304,7 @@ fill_contact_info_grid (EmpathyUserInfo *self)
       n_rows++;
     }
 
-  g_list_free (specs);
+  tp_contact_info_spec_list_free (specs);
   tp_contact_info_list_free (info);
 
   return n_rows;