aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:15:21 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:15:21 +0800
commit2f64945c0d6bef54f79ba32b8c2a6be692a31bb5 (patch)
treec1d04c69a1e15acc119982f81d0647a95c7d60ea /src/empathy.c
parent1991fd5404adbc78e244cd38c7aa297c4933aef1 (diff)
downloadgsoc2013-empathy-2f64945c0d6bef54f79ba32b8c2a6be692a31bb5.tar.gz
gsoc2013-empathy-2f64945c0d6bef54f79ba32b8c2a6be692a31bb5.tar.zst
gsoc2013-empathy-2f64945c0d6bef54f79ba32b8c2a6be692a31bb5.zip
Initialise the chatroom manager from empathy itself
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2186
Diffstat (limited to 'src/empathy.c')
-rw-r--r--src/empathy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 441242e57..5da2b2529 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -39,6 +39,7 @@
#include <libempathy/empathy-idle.h>
#include <libempathy/empathy-utils.h>
+#include <libempathy/empathy-chatroom-manager.h>
#include <libempathy/empathy-dispatcher.h>
#include <libempathy/empathy-dispatch-operation.h>
#include <libempathy/empathy-tp-chat.h>
@@ -390,6 +391,7 @@ main (int argc, char *argv[])
guint32 startup_timestamp;
EmpathyStatusIcon *icon;
EmpathyDispatcher *dispatcher;
+ EmpathyChatroomManager *chatroom_manager;
GtkWidget *window;
MissionControl *mc;
EmpathyIdle *idle;
@@ -516,6 +518,9 @@ main (int argc, char *argv[])
dispatcher = empathy_dispatcher_dup_singleton ();
g_signal_connect (dispatcher, "dispatch", G_CALLBACK (dispatch_cb), NULL);
+ chatroom_manager = empathy_chatroom_manager_dup_singleton (NULL);
+ empathy_chatroom_manager_observe (chatroom_manager, dispatcher);
+
gtk_main ();
empathy_idle_set_state (idle, MC_PRESENCE_OFFLINE);
@@ -524,6 +529,7 @@ main (int argc, char *argv[])
g_object_unref (idle);
g_object_unref (icon);
g_object_unref (dispatcher);
+ g_object_unref (chatroom_manager);
return EXIT_SUCCESS;
}