Re: problems with the redraw of widgets and callbacks with long operation time



From: Ignacio Nodal <inodal teleline es>
>
> Hi,
>
> In my program I have a window where I select a VRML file to load, press 
> OK and in the button callback, I hide this window and call my function 
> to read the VRML file (I use CyberVRML97 for this).
>
> The problem is that my GTK+ application seems to be freezed during the 
> load. The main window doesn't care about my "expose_event" callback 
> until the load ends.
>
> I don't like this behaviour,  how could I avoid this?

You're probably not giving the mainloop any time to run during the load.
Look at the documentation on the gtk mainloop (or, better, the glib mainloop)
for instructions on how to do this.

Ron Steinke



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