aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-03 22:12:30 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-03 22:12:30 +0800
commit214850e492efd75f8664bbfb98c6dd6bf161aeb6 (patch)
treefb788b71ca6e6b801d9cd257a6b798287735e763 /libempathy/empathy-tp-chat.c
parent563cdc5a284bc85957f60b14048ba6e42a0c7c87 (diff)
downloadgsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.gz
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.bz2
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.lz
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.xz
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.zst
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.zip
[darcs-to-svn @ Remove EmpathySession and move all programs into src/]
svn path=/trunk/; revision=28
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r--libempathy/empathy-tp-chat.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index f72655eca..25639dd14 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -30,7 +30,6 @@
#include "empathy-tp-chat.h"
#include "empathy-contact-manager.h"
#include "empathy-contact-list.h"
-#include "empathy-session.h"
#include "empathy-marshal.h"
#include "gossip-debug.h"
#include "gossip-time.h"
@@ -41,14 +40,15 @@
#define DEBUG_DOMAIN "TpChat"
struct _EmpathyTpChatPriv {
- EmpathyContactList *list;
- McAccount *account;
- gchar *id;
- MissionControl *mc;
-
- TpChan *tp_chan;
- DBusGProxy *text_iface;
- DBusGProxy *chat_state_iface;
+ EmpathyContactList *list;
+ EmpathyContactManager *manager;
+ McAccount *account;
+ gchar *id;
+ MissionControl *mc;
+
+ TpChan *tp_chan;
+ DBusGProxy *text_iface;
+ DBusGProxy *chat_state_iface;
};
static void empathy_tp_chat_class_init (EmpathyTpChatClass *klass);
@@ -162,6 +162,9 @@ tp_chat_finalize (GObject *object)
g_object_unref (priv->tp_chan);
}
+ if (priv->manager) {
+ g_object_unref (priv->manager);
+ }
if (priv->list) {
g_object_unref (priv->list);
}
@@ -182,7 +185,6 @@ empathy_tp_chat_new (McAccount *account,
{
EmpathyTpChatPriv *priv;
EmpathyTpChat *chat;
- EmpathyContactManager *manager;
g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL);
g_return_val_if_fail (TELEPATHY_IS_CHAN (tp_chan), NULL);
@@ -190,8 +192,8 @@ empathy_tp_chat_new (McAccount *account,
chat = g_object_new (EMPATHY_TYPE_TP_CHAT, NULL);
priv = GET_PRIV (chat);
- manager = empathy_session_get_contact_manager ();
- priv->list = empathy_contact_manager_get_list (manager, account);
+ priv->manager = empathy_contact_manager_new ();
+ priv->list = empathy_contact_manager_get_list (priv->manager, account);
priv->tp_chan = g_object_ref (tp_chan);
priv->account = g_object_ref (account);
priv->mc = mission_control_new (tp_get_bus ());