Re: glib main loop concept



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





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