X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/0d07716fe78436ae6c9c324cabdd401c25e336af..8b69b878b2a450d164849ff3eae98b93d12d53ae:/hello-world.lisp?ds=sidebyside diff --git a/hello-world.lisp b/hello-world.lisp index d89a585..0f4b5ec 100644 --- a/hello-world.lisp +++ b/hello-world.lisp @@ -1,15 +1,15 @@ -(use-package "GTK") +(in-package "GTK") (make-instance 'window :type :toplevel :title "Test" :border-width 5 - :visible t + :show-all t :child (make-instance 'button :label "Hello World!" - :visible t - :signals - (list (list 'clicked #'(lambda () (write-line "Button clicked")))))) - + :signal (list 'clicked + #'(lambda (button) + (print button) (write-line "clicked")) + :object t)))