diff libpurple/stringref.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 6bf32c9e15a7
children b24babbae157
line wrap: on
line diff
--- a/libpurple/stringref.c	Sun Jan 27 10:44:51 2008 +0000
+++ b/libpurple/stringref.c	Sun Jan 27 20:52:53 2008 +0000
@@ -31,6 +31,7 @@
 #include <stdarg.h>
 
 #include "debug.h"
+#include "eventloop.h"
 #include "stringref.h"
 
 /**
@@ -87,7 +88,7 @@
 	newref->ref = 0x80000000;
 
 	if (gclist == NULL)
-		g_idle_add(gs_idle_cb, NULL);
+		purple_timeout_add(0, gs_idle_cb, NULL);
 	gclist = g_list_prepend(gclist, newref);
 
 	return newref;