[empathy] use tp_connection_dup_contact_info_supported_fields()



commit ec601502710c9aef38d4b38a1f3cf6f37794d013
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Sep 11 14:45:20 2012 +0200

    use tp_connection_dup_contact_info_supported_fields()
    
    tp_connection_get_contact_info_supported_fields() has been deprecated

 libempathy-gtk/empathy-user-info.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-user-info.c b/libempathy-gtk/empathy-user-info.c
index 592bd45..4c9a2de 100644
--- a/libempathy-gtk/empathy-user-info.c
+++ b/libempathy-gtk/empathy-user-info.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]