Re: Animation problem
- From: "Peter \"Firefly\" Lund" <firefly diku dk>
- To: Norbert Bauer <dasaspock gmx de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Animation problem
- Date: Sun, 6 Aug 2006 19:27:36 +0200 (CEST)
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]