Lazy g_main_loop()

Sean Egan seanegan at
Thu Sep 20 14:31:56 EDT 2007

On 9/20/07, Mark Doliner <mark at> wrote:
> Why don't you just use g_timeout_add(0, (GSourceFunc)sendMessageCb, data)?

That would be exactly identical to g_idle_add. g_idle_add calls the
callback the next tiem the main loop is iterated. For some reason,
Kyryll's main loop is taking 30 seconds to iterate; it sounds like his
idle sources aren't working right, but his file descriptor sources

If you're using your own main loop, you probably want to use
purple_timeout_add() rather than g_idle.

More information about the Devel mailing list