Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
22223:19ace070f0e5 | 22224:d1b36a8c920a |
---|---|
313 query_data->results = lst; | 313 query_data->results = lst; |
314 } | 314 } |
315 | 315 |
316 /* back to main thread */ | 316 /* back to main thread */ |
317 /* Note: this should *not* be attached to query_data->handle - it will cause leakage */ | 317 /* Note: this should *not* be attached to query_data->handle - it will cause leakage */ |
318 g_idle_add(res_main_thread_cb, query_data); | 318 purple_timeout_add(0, res_main_thread_cb, query_data); |
319 | 319 |
320 g_thread_exit(NULL); | 320 g_thread_exit(NULL); |
321 return NULL; | 321 return NULL; |
322 } | 322 } |
323 | 323 |
408 | 408 |
409 /* The query isn't going to happen, so finish the SRV lookup now. | 409 /* The query isn't going to happen, so finish the SRV lookup now. |
410 * Asynchronously call the callback since stuff may not expect | 410 * Asynchronously call the callback since stuff may not expect |
411 * the callback to be called before this returns */ | 411 * the callback to be called before this returns */ |
412 if (query_data->error_message != NULL) | 412 if (query_data->error_message != NULL) |
413 query_data->handle = g_idle_add(res_main_thread_cb, query_data); | 413 query_data->handle = purple_timeout_add(0, res_main_thread_cb, query_data); |
414 | 414 |
415 return query_data; | 415 return query_data; |
416 #endif | 416 #endif |
417 } | 417 } |
418 | 418 |