]> git.0d.be Git - empathy.git/commitdiff
contact-widget: stop using tp_connection_get_self_handle()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 May 2012 09:30:49 +0000 (11:30 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 May 2012 09:35:22 +0000 (11:35 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=675229

libempathy-gtk/empathy-contact-widget.c

index ba735f6751c4ad802df0b171e6c3e92e69ebc443..ee896d5b72ec0e3b5cdbba80a7eeae211a5767cb 100644 (file)
@@ -1533,10 +1533,13 @@ contact_widget_change_contact (EmpathyContactWidget *information)
     }
   else
     {
-      empathy_tp_contact_factory_get_from_handle (connection,
-          tp_connection_get_self_handle (connection),
-          contact_widget_got_contact_cb, information, NULL,
-          G_OBJECT (information->vbox_contact_widget));
+      EmpathyContact *contact;
+
+      contact = empathy_contact_dup_from_tp_contact (
+          tp_connection_get_self_contact (connection));
+
+      contact_widget_set_contact (information, contact);
+      g_object_unref (contact);
     }
 }