Mercurial > pidgin.yaz
diff libpurple/dnssrv.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 | df77b89a4025 |
children | 313b87adb730 |
line wrap: on
line diff
--- a/libpurple/dnssrv.c Sun Jan 27 10:44:51 2008 +0000 +++ b/libpurple/dnssrv.c Sun Jan 27 20:52:53 2008 +0000 @@ -315,7 +315,7 @@ /* back to main thread */ /* Note: this should *not* be attached to query_data->handle - it will cause leakage */ - g_idle_add(res_main_thread_cb, query_data); + purple_timeout_add(0, res_main_thread_cb, query_data); g_thread_exit(NULL); return NULL; @@ -410,7 +410,7 @@ * Asynchronously call the callback since stuff may not expect * the callback to be called before this returns */ if (query_data->error_message != NULL) - query_data->handle = g_idle_add(res_main_thread_cb, query_data); + query_data->handle = purple_timeout_add(0, res_main_thread_cb, query_data); return query_data; #endif