aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-05-03 17:30:49 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-05-03 17:35:22 +0800
commite73848da5a3c8c3ab71aab36c0fbb9d7f20141d7 (patch)
treebafa8bda52042d32fed6c48eaf5dc48ac3de1661
parent51bea3323498986ac13df3d99157c2b8db83484a (diff)
downloadgsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.tar
gsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.tar.gz
gsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.tar.bz2
gsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.tar.lz
gsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.tar.xz
gsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.tar.zst
gsoc2013-empathy-e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7.zip
contact-widget: stop using tp_connection_get_self_handle()
https://bugzilla.gnome.org/show_bug.cgi?id=675229
-rw-r--r--libempathy-gtk/empathy-contact-widget.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index ba735f675..ee896d5b7 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -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);
}
}