Re: glib main loop concept
- From: Christian Buennig <masala web de>
- Cc: gtk-list gnome org
- Subject: Re: glib main loop concept
- Date: Thu, 04 Oct 2007 10:56:17 +0200
Tristan Van Berkom wrote:
> On Thu, 2007-10-04 at 00:12 +0200, Christian Buennig wrote:
> [...]
>> However, that does not matter any more. As suggested by you and jcupitt
>> I'll avoid to autonomously run a main loop within the library.
>
> Note that in some contexts it makes sense to run a nested mainloop from
> a library if its safe to assume the app is already running a mainloop,
> an example of this is gtk_dialog_run(), which will continue to process
> events from the main context, but gtk_dialog_run() wont return until
> the user has answered the dialog.
>
> Cheers,
> -Tristan
>
This is a good example illustrating the purpose of nested main loops.
Thanks Tristan.
Christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]