[empathy] persona-view: use empathy_contact_dup_from_tp_contact instead of empathy_contact_new



commit d84c92507bd5398340faf5323965df92f97bb4e2
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Aug 13 11:12:00 2010 +0200

    persona-view: use empathy_contact_dup_from_tp_contact instead of empathy_contact_new

 libempathy-gtk/empathy-persona-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-persona-view.c b/libempathy-gtk/empathy-persona-view.c
index 384f080..ee679ec 100644
--- a/libempathy-gtk/empathy-persona-view.c
+++ b/libempathy-gtk/empathy-persona-view.c
@@ -162,7 +162,7 @@ query_tooltip_cb (EmpathyPersonaView *self,
   if (persona == NULL)
     goto OUT;
 
-  contact = empathy_contact_new (tpf_persona_get_contact (
+  contact = empathy_contact_dup_from_tp_contact (tpf_persona_get_contact (
       TPF_PERSONA (persona)));
 
   if (priv->tooltip_widget == NULL)



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