Hello all.

I'm writing an app where I have to "animate" a pixmap, even when the
main thread is busy for a long time.
So I use another thread that changes the pixmap between
gdk_threads_enter() and gdk_threads_leave().
Then, it calls gtk_main_iteration_do(FALSE) to actually update the

You probably can already see the problem : SOMETIMES I get a message
saying the main loop is already active in another thread, and once I got
the infamous "async reply" message from Xlib.

What should I do ?
Delay exit from the long callback function till the thread stops ? Put
gtk_main_iteration_do(FALSE) inside the gdk_threads_* ? Kill myself or
at least the whole project ? O:-)


Do You Yahoo!?
Get your free address at

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]