RE: how to stop a function blocking my app?
- From: "Arjan J. Molenaar" <A J Molenaar xirion nl>
- To: "'Ronald Bultje'" <rbultje ronald bitfreak net>
- Cc: gtk-list gnome org
- Subject: RE: how to stop a function blocking my app?
- Date: Thu, 8 Feb 2001 09:02:26 +0100
> 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]