Re: Invoking GTK main thread from other threads
- From: Daniel Boles <dboles src gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Invoking GTK main thread from other threads
- Date: Thu, 10 Sep 2020 18:29:58 +0100
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]