summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-09 22:47:25 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-09 23:13:13 -0500
commiteec219e6c78d3d9ae543e2941c46ff8502b29135 (patch)
tree405a1e7d3c60c8b5e9996a5e3e3823a9c5168a1e /docs
parenta8db322be6e99e4407ecfb05d45ac16725668b96 (diff)
downloadgtk+-eec219e6c78d3d9ae543e2941c46ff8502b29135.tar.gz
docs: Mention gtk_main in the migration guide
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/migrating-3to4.xml13
1 files changed, 13 insertions, 0 deletions
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 @@
</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>