Re: Invoking GTK main thread from other threads
Daniel Boles via gtkmm-list <[email protected]> Thu, 10 Sep 2020 18:29:58 +0100
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <CAKChMKMsoLoGHYqrPfrJ9yVkEuVh7aKhw--0hyzLS_SMzD=opQ@mail.gmail.com> |
from your readme: > GTK# and other gtk bindings supply a method to callback to the main thread, which gtkmm does not. I'm pretty sure it does. Or rather, GLib does, and GTK uses the GLib main loop, and glibmm/gtkmm wrap both of those. You simply connect to Glib::signal_idle(), passing a callback, which will be called once the GLib main loop is running and has nothing of a higher priority to do. https://developer.gnome.org/glibmm/stable/classGlib_1_1SignalIdle.html _______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list