Here is "Hello World" using Theme-D-Gnome:
	    (define-proper-program (gnome-examples hello)
                (import (standard-library core)
                        (gnome gobject)
                        (gnome gtk))

                (define-simple-proc main (() <none> nonpure)
                    (let ((window (gtk-window-create 'toplevel))
                          (button (gtk-button-create-with-label "Hello, World!")))
                        (set-border-width window 10)
                        (add window button)
                            button 'clicked
                            (lambda (((args (rest <object>))) <object> nonpure)
                        (show-all window)
See the Theme-D-Gnome User Guide for instructions how to build and run the example programs. The example programs can also be found in the Theme-D-Gnome source package in subdirectory gnome-examples.

Back to the main page

Last updated: March 25, 2020

Copyright (C) 2020 Tommi Höynälänmaa