2 ms·
GTK relies on the Glib event loop, which is in a separate library (and also used by Qt, at least optionally). You can, if you want to, reimplement the abstract
by PaulDavisThe1st 3y ago
GTK relies on the Glib event loop, which is in a separate library (and also used by Qt, at least optionally).
You can, if you want to, reimplement the abstract API of the Glib event loop, and use that with GTK instead.
Note also that on macOS, GTK has to integrate both the Glib event loop and the event loop used by NeXTStep/Cocoa, because it is not always the case that the same one is in control (e.g. during drag-n-drop processing). It handles this "just fine", for some definition of "just fine".
- badsectoracula 3y agoYeah i was referring that is possible that toolkits to do that in general (not just GUI toolkits, AFAIK even something like Freeglut which normally uses callbacks has an API for manual main loops), not specifically about Gtk.