diff 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
line wrap: on
line diff
--- a/libpurple/idle.c	Sun Jan 27 10:44:51 2008 +0000
+++ b/libpurple/idle.c	Sun Jan 27 20:52:53 2008 +0000
@@ -24,6 +24,7 @@
 
 #include "connection.h"
 #include "debug.h"
+#include "eventloop.h"
 #include "idle.h"
 #include "log.h"
 #include "prefs.h"
@@ -333,7 +334,7 @@
 
 	/* Initialize the idleness asynchronously so it doesn't check idleness,
 	 * and potentially try to change the status before the UI is initialized */
-	g_idle_add(_do_purple_idle_touch_cb, NULL);
+	purple_timeout_add(0, _do_purple_idle_touch_cb, NULL);
 
 }