aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-03-01 03:08:43 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-03-06 05:51:00 +0800
commitd95165b819c15207ad0a133ea38684043a3776fc (patch)
tree69c9cdd2b1a8634d500213cda21f270383d17bfa /src/empathy.c
parentdf799743c6e79136ffa44e22cb19dce0146ec422 (diff)
downloadgsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.tar
gsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.tar.gz
gsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.tar.bz2
gsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.tar.lz
gsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.tar.xz
gsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.tar.zst
gsoc2013-empathy-d95165b819c15207ad0a133ea38684043a3776fc.zip
Add chat manager which tracks chats closing and can respawn them (bug #609832)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
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 f84791423..d18e165b3 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -72,6 +72,7 @@
#include "empathy-import-mc4-accounts.h"
#include "empathy-accounts-common.h"
#include "empathy-accounts-dialog.h"
+#include "empathy-chat-manager.h"
#include "empathy-status-icon.h"
#include "empathy-call-window.h"
#include "empathy-chat-window.h"
@@ -581,6 +582,7 @@ main (int argc, char *argv[])
GtkWidget *window;
EmpathyIdle *idle;
EmpathyConnectivity *connectivity;
+ EmpathyChatManager *chat_manager;
GError *error = NULL;
UniqueApp *unique_app;
gboolean chatroom_manager_ready;
@@ -677,6 +679,9 @@ main (int argc, char *argv[])
window = empathy_main_window_show ();
icon = empathy_status_icon_new (GTK_WINDOW (window), start_hidden);
+ /* Chat manager */
+ chat_manager = empathy_chat_manager_dup_singleton ();
+
g_signal_connect (unique_app, "message-received",
G_CALLBACK (unique_app_message_cb), window);
@@ -726,6 +731,7 @@ main (int argc, char *argv[])
g_object_unref (debug_sender);
#endif
+ g_object_unref (chat_manager);
g_object_unref (idle);
g_object_unref (connectivity);
g_object_unref (icon);