Re: Animation problem



On Sun, 6 Aug 2006, Norbert Bauer wrote:

Thank you very much!
Like this it's now working and seems korrekt :-)

Isn't the real solution to actually call the main loop once in a while?

while (...) {
   /*  FALSE means do NOT block when there are no more events
       (so we know it will return as quickly as it reasonably can)
    */
   if (gtk_main_iteration_do(FALSE)) {
      ... gtk_main_quit() was called while inside gtk_main_iteration_do()
      ... so the user must have asked us to quit
   }

   ... do whatever that is the reason for having to block the outer
   ... main loop in the first place
}

Once you have a main loop running, all event handling and timeouts work normally so you should be able to use a standard animation in a standard way.

-Peter



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