diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2009-01-07 00:47:35 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2009-01-07 00:47:35 +0800 |
commit | 00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb (patch) | |
tree | 989d47edf112669d1346528e6db560bcfc07db84 | |
parent | e3e2553553fc3aa3ae73dd9446e6b6e28a5cea69 (diff) | |
download | gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.tar gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.tar.gz gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.tar.bz2 gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.tar.lz gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.tar.xz gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.tar.zst gsoc2013-empathy-00702524d9e0d6e7e74cd2d1d9764d154e9cfbcb.zip |
Implement _get_monitor () in EmpathyTpChat.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2055 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r-- | libempathy/empathy-tp-chat.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 534fa5275..4b53b0611 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -40,6 +40,7 @@ #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyTpChat) typedef struct { EmpathyContactFactory *factory; + EmpathyContactMonitor *contact_monitor; EmpathyContact *user; EmpathyContact *remote_contact; EmpathyTpGroup *group; @@ -248,6 +249,18 @@ tp_chat_get_members (EmpathyContactList *list) return members; } +static EmpathyContactMonitor * +tp_chat_get_monitor (EmpathyContactList *list) +{ + EmpathyTpChatPriv *priv; + + g_return_val_if_fail (EMPATHY_IS_TP_CHAT (list), NULL); + + priv = GET_PRIV (list); + + return priv->contact_monitor; +} + static EmpathyMessage * tp_chat_build_message (EmpathyTpChat *chat, guint type, @@ -894,6 +907,7 @@ tp_chat_finalize (GObject *object) g_object_unref (priv->group); } + g_object_unref (priv->contact_monitor); g_object_unref (priv->factory); g_object_unref (priv->user); g_object_unref (priv->account); @@ -1097,6 +1111,7 @@ empathy_tp_chat_init (EmpathyTpChat *chat) EMPATHY_TYPE_TP_CHAT, EmpathyTpChatPriv); chat->priv = priv; + priv->contact_monitor = empathy_contact_monitor_new_for_proxy (EMPATHY_CONTACT_LIST (chat)); } static void @@ -1105,6 +1120,7 @@ tp_chat_iface_init (EmpathyContactListIface *iface) iface->add = tp_chat_add; iface->remove = tp_chat_remove; iface->get_members = tp_chat_get_members; + iface->get_monitor = tp_chat_get_monitor; } EmpathyTpChat * |