diff options
author | Mark Doliner <markdoliner@pidgin.im> | 2008-01-27 20:52:53 +0000 |
---|---|---|
committer | Mark Doliner <markdoliner@pidgin.im> | 2008-01-27 20:52:53 +0000 |
commit | a239361f74c58b1a7450df17e929d96a0088ed47 (patch) | |
tree | b67af5b9444f7fab659db2f204d26fbea50d2422 /libpurple/idle.c | |
parent | 6b1fd2ffbeb34056b24de6afd1dc46e4bfe03182 (diff) | |
download | pidgin-a239361f74c58b1a7450df17e929d96a0088ed47.tar.gz |
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.
Diffstat (limited to 'libpurple/idle.c')
-rw-r--r-- | libpurple/idle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpurple/idle.c b/libpurple/idle.c index 34129bd836..f71ca9f9b1 100644 --- a/libpurple/idle.c +++ b/libpurple/idle.c @@ -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 @@ purple_idle_init() /* 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); } |