[empathy] call-window: use empathy_call_handler_get_contact()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] call-window: use empathy_call_handler_get_contact()
- Date: Thu, 23 Feb 2012 15:22:05 +0000 (UTC)
commit ccb6c7702e9a6c65a46886baafb4ef2acccb2595
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Feb 23 14:39:03 2012 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 114ec94..a03a570 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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]