Re: Screen updates while long time running subroutine



>   I have a routine that makes a lot of math stuff and takes about 60 seconds 
>to run.
>   While this routine is running, the Gtk program seems staled. It doesn't res
>pond to resizes and if I change the focus to another program and go back to it
>, it's window keeps all grey and just redraws at the end of the routine.
>   Is there any function that I can put inside my loops in this routines that 
>forces a redraw/resize if the user is trying to do it?

Read the FAQ at www.gtk.org. This will also answer your question about
a timeout function. If not, see the tutorial in the documentation
section of the same web site.

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]