chiark / gitweb /
Fixed ref counting problem when reading the icon-list slot in windows
[clg] / hello-world.lisp
CommitLineData
7e642867 1(use-package :gtk)
0d07716f 2
a6665315 3(clg-init)
4
0d07716f 5(make-instance 'window
7e642867 6; :type :toplevel
0d07716f 7 :title "Test"
8 :border-width 5
43d515e3 9 :visible t :show-children t
0d07716f 10 :child (make-instance 'button
11 :label "Hello World!"
19ecaf3c 12 :signal (list 'clicked
7e642867 13 #'(lambda ()
14 (write-line "Hello World!"))))
15 :signal (list 'delete-event
16 #'(lambda (event)
17 (declare (ignore event))
18 (write-line "Destroying window")
19 nil ; Returning NIL generates a destroy event
20 )))