From ccb6c7702e9a6c65a46886baafb4ef2acccb2595 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 23 Feb 2012 14:39:03 +0100 Subject: call-window: use empathy_call_handler_get_contact() I'm sure those bugs are because we were using g_object_get() directly. --- src/empathy-call-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 114ec940a..a03a570db 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -2219,8 +2219,9 @@ empathy_call_window_constructed (GObject *object) priv->outgoing = (state == TP_CALL_STATE_PENDING_INITIATOR); tp_clear_object (&call); - g_object_get (priv->handler, "target-contact", &priv->contact, NULL); + priv->contact = empathy_call_handler_get_contact (priv->handler); g_assert (priv->contact != NULL); + g_object_ref (priv->contact); if (!empathy_contact_can_voip_video (priv->contact)) { -- cgit v1.2.3