aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-11 20:42:51 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-11 21:10:44 +0800
commit2aab470c76e4c0b383b3ac6140796314883c3cc6 (patch)
treeacff71327402b5f95048b0c7bbf5eae9ab799300 /libempathy-gtk
parent8fe7c7a2348dcfc1f7833eb84264e9437d5795e8 (diff)
downloadgsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.tar
gsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.tar.gz
gsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.tar.bz2
gsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.tar.lz
gsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.tar.xz
gsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.tar.zst
gsoc2013-empathy-2aab470c76e4c0b383b3ac6140796314883c3cc6.zip
use tp_contact_dup_contact_info()
tp_contact_get_contact_info() has been deprecated.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-widget.c4
-rw-r--r--libempathy-gtk/empathy-user-info.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index a5eb3c99e..832d944de 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 75a6dbd77..592bd45da 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;
}