Re: glib main loop concept

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

 



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

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux