Adam Tauno Williams-3 wrote:
> 
> Or you could do something of the following pattern:
> 
> void LongComputation ()
> {
>      while (!done){
>          ComputationChunk ();
>  
>          // Flush pending events to keep the GUI reponsive
>          while (Gtk.Application.EventsPending ())
>               Gtk.Application.RunIteration ();
>      }
> }
> 

This solution works perfectly for me!

Thank you very much!
Francesco
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Pause-the-execution-of-crowded-computation-to-allow-the-GUI-to-refresh-tp2062626p2062952.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to