diff libpurple/protocols/msnp9/msn.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 1f3f2d2c9a2b
children 6e5d37105189
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/msn.c	Sun Jan 27 10:44:51 2008 +0000
+++ b/libpurple/protocols/msnp9/msn.c	Sun Jan 27 20:52:53 2008 +0000
@@ -27,6 +27,7 @@
 
 #include "msn.h"
 #include "accountopt.h"
+#include "eventloop.h"
 #include "msg.h"
 #include "page.h"
 #include "pluginpref.h"
@@ -856,7 +857,7 @@
 		imdata->msg = body_str;
 		imdata->flags = flags;
 		imdata->when = time(NULL);
-		g_idle_add(msn_send_me_im, imdata);
+		purple_timeout_add(0, msn_send_me_im, imdata);
 	}
 
 	msn_message_destroy(msg);