Also, worth differentiating between 1 main loop per thread + multiple threads, and multiple recursive main loops per thread.
Modal dialogs involve a recursive main loop, but it runs in the same thread as the normal main loop does (since it runs "inside" the "real" main loop).On Sat, May 7, 2016 at 6:10 PM, Ben Iofel <iofelben@xxxxxxxxx> wrote:
Dialogs, for example, have their own main loop.Generally, though, you will have one main loop (gtk's loop) even for multiple windows in your app.On Fri, May 6, 2016 at 4:11 PM, Krzysztof <kj@xxxxxxxxxxxx> wrote:Is there a reason to have more than one MainContext or more than one MainLoop? Or is it more appropriate to add event handlers to one application main loop (I mean GtkApplication)?
--
Regards
Krzysztof J.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list