comparison libpurple/idle.c @ 22224:d1b36a8c920a

Change some g_idle_add(...) calls in libpurple to purple_timeout_add(0, ...) We need to use the purple functions here so we can hook into mainloops other than gtk, which is important for Adium. Felipe pointed out the call in msnp9 and grep found the others.
author Mark Doliner <mark@kingant.net>
date Sun, 27 Jan 2008 20:52:53 +0000
parents 76e0463db3aa
children 7883ed211f3e
comparison
equal deleted inserted replaced
22223:19ace070f0e5 22224:d1b36a8c920a
22 */ 22 */
23 #include "internal.h" 23 #include "internal.h"
24 24
25 #include "connection.h" 25 #include "connection.h"
26 #include "debug.h" 26 #include "debug.h"
27 #include "eventloop.h"
27 #include "idle.h" 28 #include "idle.h"
28 #include "log.h" 29 #include "log.h"
29 #include "prefs.h" 30 #include "prefs.h"
30 #include "savedstatuses.h" 31 #include "savedstatuses.h"
31 #include "signals.h" 32 #include "signals.h"
331 purple_prefs_connect_callback(purple_idle_get_handle(), "/purple/away/idle_reporting", 332 purple_prefs_connect_callback(purple_idle_get_handle(), "/purple/away/idle_reporting",
332 idle_reporting_cb, NULL); 333 idle_reporting_cb, NULL);
333 334
334 /* Initialize the idleness asynchronously so it doesn't check idleness, 335 /* Initialize the idleness asynchronously so it doesn't check idleness,
335 * and potentially try to change the status before the UI is initialized */ 336 * and potentially try to change the status before the UI is initialized */
336 g_idle_add(_do_purple_idle_touch_cb, NULL); 337 purple_timeout_add(0, _do_purple_idle_touch_cb, NULL);
337 338
338 } 339 }
339 340
340 void 341 void
341 purple_idle_uninit() 342 purple_idle_uninit()