[empathy] use tp_contact_dup_contact_info()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] use tp_contact_dup_contact_info()
- Date: Tue, 11 Sep 2012 13:19:40 +0000 (UTC)
commit 2aab470c76e4c0b383b3ac6140796314883c3cc6
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Sep 11 14:42:51 2012 +0200
use tp_contact_dup_contact_info()
tp_contact_get_contact_info() has been deprecated.
libempathy-gtk/empathy-individual-widget.c | 4 ++--
libempathy-gtk/empathy-user-info.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index a5eb3c9..832d944 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -239,7 +239,7 @@ details_update_show (EmpathyIndividualWidget *self,
TpConnection *conn;
TpAccount *account;
- info = tp_contact_get_contact_info (contact);
+ info = tp_contact_dup_contact_info (contact);
info = g_list_sort (info, (GCompareFunc) empathy_contact_info_field_cmp);
for (l = info; l != NULL; l = l->next)
{
@@ -309,7 +309,7 @@ details_update_show (EmpathyIndividualWidget *self,
n_rows++;
}
- g_list_free (info);
+ tp_contact_info_list_free (info);
return n_rows;
}
diff --git a/libempathy-gtk/empathy-user-info.c b/libempathy-gtk/empathy-user-info.c
index 75a6dbd..592bd45 100644
--- a/libempathy-gtk/empathy-user-info.c
+++ b/libempathy-gtk/empathy-user-info.c
@@ -185,7 +185,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);
- info = tp_contact_get_contact_info (contact);
+ info = tp_contact_dup_contact_info (contact);
/* Look at the fields set in our vCard */
for (l = info; l != NULL; l = l->next)
@@ -305,7 +305,7 @@ fill_contact_info_grid (EmpathyUserInfo *self)
}
g_list_free (specs);
- g_list_free (info);
+ tp_contact_info_list_free (info);
return n_rows;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]