summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-10 17:39:25 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-09-10 17:39:25 +0000
commit7151b1fc31c79090e11de442a6c0d4d828471076 (patch)
tree325ec49c9a6850a7363cc70e1dbb821cfe4f4be7
parentaff788e58308193d2a49707ca1afef5d422c065b (diff)
parent790733673f186e73618074cd11fc08bc32c0524c (diff)
downloadgtk+-7151b1fc31c79090e11de442a6c0d4d828471076.tar.gz
Merge branch 'ebassi/for-master' into 'master'
docs: Add note on command line arguments See merge request GNOME/gtk!2554
-rw-r--r--docs/reference/gtk/migrating-3to4.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/reference/gtk/migrating-3to4.md b/docs/reference/gtk/migrating-3to4.md
index 27e6ead12c..f02ae68508 100644
--- a/docs/reference/gtk/migrating-3to4.md
+++ b/docs/reference/gtk/migrating-3to4.md
@@ -49,6 +49,15 @@ application, e.g.:
G_ENABLE_DIAGNOSTIC=1 ./your-app
```
+### Do not use GTK-specific command line arguments
+
+GTK4 does not parse command line arguments any more. If you are using
+command line arguments like `--gtk-debug` you should use the `GTK_DEBUG`
+environment variable instead. If you are using `--g-fatal-warnings` for
+debugging purposes, you should use the `G_DEBUG` environment variable, as
+specified by the
+[GLib documentation](https://developer.gnome.org/glib/stable/glib-running.html).
+
### Do not use widget style properties
Style properties do not exist in GTK 4. You should stop using them in