delays in event dispatching ???
- From: Diego Zuccato <cssl geocities com>
- To: gtk-list gnome org
- Subject: delays in event dispatching ???
- Date: Mon, 04 Sep 2000 14:17:26 +0200
Hello all.
In a program I'm developing, it seems that events take some time to be
dispatched. So, if in a dialog window I :
0) show dialog
1) update text and percentage in a progress bar
2) process event queue
3) loop 1)
I see updates starting from the second (and it seems the window is
completly redrawn, infact sometimes other content get "blanked out").
BUT, if :
2a) sleep(1);
2b) process event queue
I see the first update, too.
To "process event queue" I tries all I could think:
* while(gtk_events_pending()) gtk_main_iteration();
* while(gtk_events_pending()) gtk_main_iteration_do(TRUE);
* while(gtk_events_pending()) gtk_main_iteration_do(FALSE);
* gtk_main_iteration_do(TRUE);
* gtk_main_iteration_do(FALSE);
(possibly some others I don't remember).
Am I missing something (probably, since I'm quite new to GTK
programming) ?
Tks in advance, and sorry for my bad english.
Diego.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]