diff mcabber/src/xmpp.c @ 1653:fca9a4c17432

Improve UI latency and CPU usage Remove main_loop(), and use GIOChannels for the FIFO system.
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 01 Dec 2009 21:06:06 +0100
parents cfa1fff86f78
children 031eda601e8a
line wrap: on
line diff
--- a/mcabber/src/xmpp.c	Sun Nov 22 23:38:31 2009 +0200
+++ b/mcabber/src/xmpp.c	Tue Dec 01 21:06:06 2009 +0100
@@ -39,6 +39,7 @@
 #include "screen.h"
 #include "settings.h"
 #include "utils.h"
+#include "main.h"
 
 #define RECONNECTION_TIMEOUT    60L
 
@@ -1615,8 +1616,7 @@
     return;
   }
 
-  lconnection = lm_connection_new_with_context
-          (NULL, g_main_loop_get_context(main_loop));
+  lconnection = lm_connection_new_with_context(NULL, main_context);
 
   g_log_set_handler("LM", LM_LOG_LEVEL_ALL, lm_debug_handler, NULL);