Very annoying for new users when the hello world example doesn't work!

-- 
Chris
From a3e26a9c641c5cb9f1187cfc37052d04b279aed0 Mon Sep 17 00:00:00 2001
From: Christopher O'Neill <c...@chrisoneill.co.uk>
Date: Tue, 16 Sep 2025 23:37:56 +0100
Subject: [PATCH] Fix broken code in examples

---
 doc/ug-gswg-hello-world.texi | 4 ++--
 doc/ug-gswg-scripting.texi   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/ug-gswg-hello-world.texi b/doc/ug-gswg-hello-world.texi
index f69a9fa..699fb8a 100644
--- a/doc/ug-gswg-hello-world.texi
+++ b/doc/ug-gswg-hello-world.texi
@@ -37,7 +37,7 @@ G-Golf:
              #:application-id "org.example.GtkApplication")))
   (connect app 'activate activate)
   ;; Run the application
-  (run app 0 '()))
+  (run app '()))
 @end lisp
 
 Providing you successfully installed G-Golf, you may run the above code
@@ -68,7 +68,7 @@ re-evaluate the last expression:
 (let ((app (make <gtk-application>
              #:application-id "com.example.GtkApplication")))
   (connect app 'activate activate)
-  (run app 0 '()))
+  (run app '()))
 @end lisp
 
 Great! Now, the application was launched instantaneously. Since
diff --git a/doc/ug-gswg-scripting.texi b/doc/ug-gswg-scripting.texi
index 456f8fe..73df8f8 100644
--- a/doc/ug-gswg-scripting.texi
+++ b/doc/ug-gswg-scripting.texi
@@ -192,7 +192,7 @@ exec guile -e main -s "$0" "$@@"
   (let ((app (make <gtk-application>
                #:application-id "org.gtk.example")))
     (connect app 'activate activate)
-    (let ((status (run app 0 '())))
+    (let ((status (run app '())))
       (exit status))))
 @end lisp
 
@@ -236,7 +236,7 @@ arguments. It is actually optional, but when used, they are passed to
 the @code{main} (entry point) script procedure.
 
 However, as you may have noticed, we do not pass those (if any) to the
-Gtk application, which we launch using @code{(run app 0 '())}.
+Gtk application, which we launch using @code{(run app '())}.
 
 This is intentional: (a) we (want to) always use the same incantation to
 invoke Guile - and sometimes. may quiclky hack something using
-- 
2.51.0

Reply via email to