]> git.0d.be Git - empathy.git/commitdiff
call-window: use empathy_call_handler_get_contact()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 23 Feb 2012 13:39:03 +0000 (14:39 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 23 Feb 2012 15:21:32 +0000 (16:21 +0100)
I'm sure those bugs are because we were using g_object_get() directly.

src/empathy-call-window.c

index 114ec940afe7397abbe7c9d20d76073cd993fe23..a03a570db75c97338521cb8ddc5c6b94418b23fe 100644 (file)
@@ -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))
     {