aboutsummaryrefslogtreecommitdiffstats
path: root/chat/empathy-chat-main.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-01 20:18:26 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-01 20:18:26 +0800
commit8aaf6865026ead0f21a233a2897a89a7de332f5d (patch)
tree1eb2237d2e0284e26130361ec8ca68922af6e971 /chat/empathy-chat-main.c
parentb21403fed48c9b95d32a9b8968ac8f47135fd34f (diff)
downloadgsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.tar
gsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.tar.gz
gsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.tar.bz2
gsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.tar.lz
gsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.tar.xz
gsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.tar.zst
gsoc2013-empathy-8aaf6865026ead0f21a233a2897a89a7de332f5d.zip
[darcs-to-svn @ Connect accounts in empathy-launcher, not in empathy-contact-list]
svn path=/trunk/; revision=14
Diffstat (limited to 'chat/empathy-chat-main.c')
-rw-r--r--chat/empathy-chat-main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/chat/empathy-chat-main.c b/chat/empathy-chat-main.c
index 36cf3850b..864e506b7 100644
--- a/chat/empathy-chat-main.c
+++ b/chat/empathy-chat-main.c
@@ -29,6 +29,7 @@
#include <libtelepathy/tp-conn.h>
#include <libtelepathy/tp-chan.h>
+#include <libtelepathy/tp-helpers.h>
#include <libmissioncontrol/mc-account.h>
#include <libempathy/gossip-contact.h>
@@ -57,7 +58,7 @@ new_channel_cb (EmpathyChandler *chandler,
GossipPrivateChat *chat;
/* We have a private chat channel */
- mc = empathy_session_get_mission_control ();
+ mc = mission_control_new (tp_get_bus ());
account = mission_control_get_account_for_connection (mc, tp_conn, NULL);
manager = empathy_session_get_contact_manager ();
list = empathy_contact_manager_get_list (manager, account);
@@ -66,6 +67,7 @@ new_channel_cb (EmpathyChandler *chandler,
chat = gossip_private_chat_new_with_channel (contact, tp_chan);
gossip_chat_present (GOSSIP_CHAT (chat));
+ g_object_unref (mc);
g_object_unref (account);
g_object_unref (contact);
g_object_unref (chat);