diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-13 17:08:52 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-13 17:08:52 +0800 |
commit | 36d92a29445e3841c2c20befad039031fcd869bc (patch) | |
tree | eac33d6994728498db1b9de67bb2e42cfcef6bee /libempathy-gtk | |
parent | 3d2f200b14e889d1ac91b3d081c1c00abd0d2e37 (diff) | |
download | gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.tar gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.tar.gz gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.tar.bz2 gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.tar.lz gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.tar.xz gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.tar.zst gsoc2013-empathy-36d92a29445e3841c2c20befad039031fcd869bc.zip |
persona-store: use empathy_contact_dup_from_tp_contact instead of empathy_contact_new
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-persona-store.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-persona-store.c b/libempathy-gtk/empathy-persona-store.c index 52a03d6e4..beb71c743 100644 --- a/libempathy-gtk/empathy-persona-store.c +++ b/libempathy-gtk/empathy-persona-store.c @@ -291,7 +291,7 @@ add_persona (EmpathyPersonaStore *self, if (EMP_STR_EMPTY (alias)) return; - contact = empathy_contact_new (tpf_persona_get_contact ( + contact = empathy_contact_dup_from_tp_contact (tpf_persona_get_contact ( TPF_PERSONA (persona))); gtk_list_store_insert_with_values (GTK_LIST_STORE (self), &iter, 0, @@ -352,7 +352,7 @@ get_persona_status_icon (EmpathyPersonaStore *self, GdkPixbuf *pixbuf_status = NULL; const gchar *status_icon_name = NULL; - contact = empathy_contact_new (tpf_persona_get_contact ( + contact = empathy_contact_dup_from_tp_contact (tpf_persona_get_contact ( TPF_PERSONA (persona))); status_icon_name = empathy_icon_name_for_contact (contact); @@ -460,7 +460,7 @@ update_persona (EmpathyPersonaStore *self, } /* We still need to use EmpathyContact for the capabilities stuff */ - contact = empathy_contact_new (tpf_persona_get_contact ( + contact = empathy_contact_dup_from_tp_contact (tpf_persona_get_contact ( TPF_PERSONA (persona))); pixbuf_avatar = empathy_pixbuf_avatar_from_contact_scaled (contact, @@ -578,12 +578,12 @@ sort_personas (FolksPersona *persona_a, if (ret_val != 0) goto out; - contact = empathy_contact_new (tpf_persona_get_contact ( + contact = empathy_contact_dup_from_tp_contact (tpf_persona_get_contact ( TPF_PERSONA (persona_a))); account_a = empathy_contact_get_account (contact); g_object_unref (contact); - contact = empathy_contact_new (tpf_persona_get_contact ( + contact = empathy_contact_dup_from_tp_contact (tpf_persona_get_contact ( TPF_PERSONA (persona_b))); account_b = empathy_contact_get_account (contact); g_object_unref (contact); |