aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-23 21:39:03 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-23 23:21:32 +0800
commitccb6c7702e9a6c65a46886baafb4ef2acccb2595 (patch)
treef067295b102c7c5ab06680c4e172d910502059a1
parentbdebda58a42501f6c4c6f8e0692239662827aba1 (diff)
downloadgsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.tar
gsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.tar.gz
gsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.tar.bz2
gsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.tar.lz
gsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.tar.xz
gsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.tar.zst
gsoc2013-empathy-ccb6c7702e9a6c65a46886baafb4ef2acccb2595.zip
call-window: use empathy_call_handler_get_contact()
I'm sure those bugs are because we were using g_object_get() directly.
-rw-r--r--src/empathy-call-window.c3
1 files changed, 2 insertions, 1 deletions
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))
{