Event pending problem



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]