docs: Mention gtk_main in the migration guide

This commit is contained in:
Matthias Clasen 2020-02-09 22:47:25 -05:00
parent a8db322be6
commit eec219e6c7

View File

@ -199,6 +199,19 @@
</para>
</section>
<section>
<title>Stop using gtk_main() and related APIs</title>
<para>
GTK4 removes the gtk_main_ family of APIs. The recommended replacement
is GtkApplication, but you can also iterate the GLib mainloop directly,
using GMainContext APIs.
</para>
<para>
The replacement for gtk_events_pending() is g_main_context_pending(),
the replacement for gtk_main_iteration() is g_main_context_iteration().
</para>
</section>
</section>
<section>