[Gtk-sharp-list] Pause the execution of crowded computation to allow the GUI to refresh
fpiraneo
fpiraneo at iface.ch
Fri Apr 23 17:14:40 EDT 2010
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.
More information about the Gtk-sharp-list
mailing list