[empathy] individual-widget: use priv->contact as that's our pointer on the TpContact now



commit 7803366218ee4b09782394985ffc0d31cb1b8a78
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Feb 1 17:33:27 2011 +0100

    individual-widget: use priv->contact as that's our pointer on the TpContact now

 libempathy-gtk/empathy-individual-widget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 6cb6226..4c08d12 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -433,7 +433,6 @@ static void
 details_update (EmpathyIndividualWidget *self)
 {
   EmpathyIndividualWidgetPriv *priv = GET_PRIV (self);
-  TpContact *tp_contact = NULL;
 
   if (!(priv->flags & EMPATHY_INDIVIDUAL_WIDGET_SHOW_DETAILS))
     return;
@@ -455,7 +454,7 @@ details_update (EmpathyIndividualWidget *self)
       data->contact = g_object_ref (priv->contact);
 
       /* First, make sure the CONTACT_INFO feature is ready on the connection */
-      connection = tp_contact_get_connection (tp_contact);
+      connection = tp_contact_get_connection (priv->contact);
       tp_proxy_prepare_async (connection, features,
           (GAsyncReadyCallback) details_feature_prepared_cb, data);
     }



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