Re: how to stop a function blocking my app?



>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.

you need to run the button function in its own thread. see the GTK+
FAQ for more ideas on how to do this. this is one of the most standard
problems in GUI programming.

--p




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