Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1652:8036750d0169 | 1653:fca9a4c17432 |
---|---|
37 #include "otr.h" | 37 #include "otr.h" |
38 #include "roster.h" | 38 #include "roster.h" |
39 #include "screen.h" | 39 #include "screen.h" |
40 #include "settings.h" | 40 #include "settings.h" |
41 #include "utils.h" | 41 #include "utils.h" |
42 #include "main.h" | |
42 | 43 |
43 #define RECONNECTION_TIMEOUT 60L | 44 #define RECONNECTION_TIMEOUT 60L |
44 | 45 |
45 LmConnection* lconnection; | 46 LmConnection* lconnection; |
46 static guint AutoConnection; | 47 static guint AutoConnection; |
1613 if (!password) { | 1614 if (!password) { |
1614 scr_LogPrint(LPRINT_LOGNORM, "Your password has not been specified!"); | 1615 scr_LogPrint(LPRINT_LOGNORM, "Your password has not been specified!"); |
1615 return; | 1616 return; |
1616 } | 1617 } |
1617 | 1618 |
1618 lconnection = lm_connection_new_with_context | 1619 lconnection = lm_connection_new_with_context(NULL, main_context); |
1619 (NULL, g_main_loop_get_context(main_loop)); | |
1620 | 1620 |
1621 g_log_set_handler("LM", LM_LOG_LEVEL_ALL, lm_debug_handler, NULL); | 1621 g_log_set_handler("LM", LM_LOG_LEVEL_ALL, lm_debug_handler, NULL); |
1622 | 1622 |
1623 ping = 40; | 1623 ping = 40; |
1624 if (settings_opt_get("pinginterval")) | 1624 if (settings_opt_get("pinginterval")) |