[empathy] contact-widget: stop using tp_connection_get_self_handle()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] contact-widget: stop using tp_connection_get_self_handle()
- Date: Thu, 3 May 2012 09:47:42 +0000 (UTC)
commit e73848da5a3c8c3ab71aab36c0fbb9d7f20141d7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu May 3 11:30:49 2012 +0200
contact-widget: stop using tp_connection_get_self_handle()
https://bugzilla.gnome.org/show_bug.cgi?id=675229
libempathy-gtk/empathy-contact-widget.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index ba735f6..ee896d5 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]