From eec219e6c78d3d9ae543e2941c46ff8502b29135 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 9 Feb 2020 22:47:25 -0500 Subject: [PATCH] docs: Mention gtk_main in the migration guide --- docs/reference/gtk/migrating-3to4.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/reference/gtk/migrating-3to4.xml b/docs/reference/gtk/migrating-3to4.xml index 9bb310534b..e08d97f316 100644 --- a/docs/reference/gtk/migrating-3to4.xml +++ b/docs/reference/gtk/migrating-3to4.xml @@ -199,6 +199,19 @@ +
+ Stop using gtk_main() and related APIs + + + 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. + + + The replacement for gtk_events_pending() is g_main_context_pending(), + the replacement for gtk_main_iteration() is g_main_context_iteration(). + +