summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-01-06 18:06:55 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-01-06 18:06:55 +0000
commit66c947b86baf519b2df73b3eb0844d100b81e91d (patch)
tree3a56e25caf7bc7bf2bf315b24da706b6d612c88a /docs
parentad1af8783483236637a90e2cfc7ad30b0603c344 (diff)
parent9fd4b215ee6c576323a895b718b7522b44c1d3a6 (diff)
downloadgtk+-66c947b86baf519b2df73b3eb0844d100b81e91d.tar.gz
Merge branch 'swap-3-4' into 'main'
docs: Place example-{3,4} in numerical order See merge request GNOME/gtk!5319
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/getting_started.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/reference/gtk/getting_started.md b/docs/reference/gtk/getting_started.md
index 03660763f1..656683516c 100644
--- a/docs/reference/gtk/getting_started.md
+++ b/docs/reference/gtk/getting_started.md
@@ -377,7 +377,7 @@ demonstrates input event handling with event controllers.
### Drawing in response to input
-Create a new file with the following content named `example-4.c`.
+Create a new file with the following content named `example-3.c`.
```c
#include <gtk/gtk.h>
@@ -572,7 +572,7 @@ main (int argc,
You can compile the program above with GCC using:
```
-gcc $( pkg-config --cflags gtk4 ) -o example-4 example-4.c $( pkg-config --libs gtk4 )
+gcc $( pkg-config --cflags gtk4 ) -o example-3 example-3.c $( pkg-config --libs gtk4 )
```
## Building user interfaces
@@ -587,7 +587,7 @@ XML format that can be parsed by the [class@Gtk.Builder] class.
### Packing buttons with GtkBuilder
-Create a new file with the following content named `example-3.c`.
+Create a new file with the following content named `example-4.c`.
```c
#include <gtk/gtk.h>
@@ -697,7 +697,7 @@ Create a new file with the following content named `builder.ui`.
You can compile the program above with GCC using:
```
-gcc $( pkg-config --cflags gtk4 ) -o example-3 example-3.c $( pkg-config --libs gtk4 )
+gcc $( pkg-config --cflags gtk4 ) -o example-4 example-4.c $( pkg-config --libs gtk4 )
```
Note that `GtkBuilder` can also be used to construct objects that are