RE: how to stop a function blocking my app?



> Hey there,
>
> if a button is pressed, the function connected to it will block the
> function until it is completed. Is there any way to prevent 
> this? I'd need
> to keep control over the application while the process called 
> by the button
> click is running.

Hi,

You can add an idle handler. In the idle function you can process a part of what has to be done and then wait for the idle handler to be called again from the main loop (depends on the return value IIRC).

(note that not all processing can be done at once in the idle function, since that will also block your app).

Regards,

Arjan

> Ronald
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 




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