2 (:use
:cl
:gtk
:gobject
:glib
)
5 (in-package :gtk-hello
)
8 (let ((output *standard-output
*))
10 (let ((window (make-instance 'gtk-window
12 :window-position
:center
16 (button (make-instance 'button
:label
"Hello, world!"))
18 (g-signal-connect button
"clicked"
21 (format output
"Hello, world!~%")
22 (setf (button-label button
)
24 "Hello, world! (clicked ~D times)"
26 (container-add window button
)
27 (widget-show window
:all t
)))))