Event pending problem
- From: "DC A" <adc4444 hotmail com>
- To: gtk-list gnome org
- Subject: Event pending problem
- Date: Thu, 21 Sep 2006 23:53:44 +0000
In the code:
for(gflt=0; gflt <=1; )
{
gtk_progress_bar_update((GtkProgressBar*)pbar, gflt);
while(gtk_events_pending())
gtk_main_iteration();
gflt += 0.1;
sleep(1);
if( gflt > 1) break;
}
Why use while loop for event pendings? You can clearly see that there is
only one event pending which is gtk_progress_bar_update. so why looking for
others? Thanks.
--AD
_________________________________________________________________
Buy what you want when you want it on Sympatico / MSN Shopping
http://shopping.sympatico.msn.ca/content/shp/?ctId=2,ptnrid=176,ptnrdata=081805
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]