]> git.0d.be Git - empathy.git/commitdiff
individual-widget: use priv->contact as that's our pointer on the TpContact now
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 1 Feb 2011 16:33:27 +0000 (17:33 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 1 Feb 2011 16:33:27 +0000 (17:33 +0100)
libempathy-gtk/empathy-individual-widget.c

index 6cb6226a52156b9385582f00515f161c76fd068d..4c08d122cd978e7752750dc11139c9f7433bd3ea 100644 (file)
@@ -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);
     }