Re: gtk_timeout_add problem



Juhana Sadeharju wrote:
Hello.

If timeout period is too low (with respect to what the callback takes),
gtk_timeout_add() gives problems: no configure or expose events are
called! I expected the configure and expose events are in the long queue
inbetween the timeout events and waited for a long time, but only the
timeout callback was ever called.

One could test it by creating a 50 ms timeout and sleep 1 sec in the
callback.

Funny, you dont get a refresh every second ?

Did you try using the _full varient (g_timeout_add_full()) with a
G_PRIORITY_LOW argument ?

Cheers,
                      -Tristan




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