Fix and improve various code samples

10 jobs for wip/baedert/for-master in 29 minutes and 44 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  .Pre
failed #836675
allowed to fail
style-check-diff

00:03:21

 
  Build
passed #836676
fedora-x86_64

00:29:44

failed #836678
win32-ps
msys2-mingw64

00:05:34

passed #836677
release-build

00:10:39

 
  Analysis
failed #836680
asan allowed to fail
asan-build

00:10:30

passed #836679
static-scan

00:16:14

 
  Docs
passed #836681
reference

00:17:46

 
  Flatpak
manual #836682
flatpak allowed to fail manual
flatpak-manual:demo
manual #836684
flatpak allowed to fail manual
flatpak-manual:icon-browser
manual #836683
flatpak allowed to fail manual
flatpak-manual:widget-factory
 
Name Stage Failure
failed
asan-build Analysis
Processing gtk suite css:
- css: 195 total, 195 pass, 0 fail
Processing gtk suite a11y:
- a11y: 18 total, 18 pass, 0 fail
Processing gtk suite tools:
- tools: 3 total, 3 pass, 0 fail
Processing gtk suite reftest:
- reftest: 132 total, 131 pass, 1 fail
ERROR: Job failed: exit code 1
failed
msys2-mingw64 Build
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
[92/2394] Compiling C object subprojects/glib/glib/9812f34@@glib-2.0@sha/gwakeup.c.obj
[93/2394] Compiling C object subprojects/glib/glib/9812f34@@glib-2.0@sha/gutils.c.obj
[94/2394] Compiling C object subprojects/glib/glib/9812f34@@glib-2.0@sha/gvariant-parser.c.obj
[95/2394] Compiling C object subprojects/glib/glib/9812f34@@glib-2.0@sha/gspawn-win32.c.obj
ninja: build stopped: subcommand failed.
Uploading artifacts for failed job
ERROR: Job failed: exit status 1
failed
style-check-diff .Pre
       update_go_button (iw->go_down_button,
- GTK_IS_WIDGET (object) &>k_widget_get_first_child (GTK_WIDGET (object)) != NULL,
+ GTK_IS_WIDGET (object) && gtk_widget_get_first_child (GTK_WIDGET (object)) != NULL,
"First child");
update_go_button (iw->go_previous_button,
GTK_IS_WIDGET (object) && gtk_widget_get_prev_sibling (GTK_WIDGET (object)) != NULL,
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1