chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added multi-threading support
[clg]
/
hello-world.lisp
diff --git
a/hello-world.lisp
b/hello-world.lisp
index 0f4b5ec83188016b4515a970e7c32041498bf190..2ce6269925aad5c387e9457cc8ae19cb05ca3431 100644
(file)
--- a/
hello-world.lisp
+++ b/
hello-world.lisp
@@
-1,15
+1,18
@@
-(
in-package "GTK"
)
+(
gtk:clg-init
)
-(make-instance 'window
- :type :toplevel
+(make-instance '
gtk:
window
+
;
:type :toplevel
:title "Test"
:border-width 5
:title "Test"
:border-width 5
- :
show-all
t
- :child (make-instance 'button
+ :
visible t :show-children
t
+ :child (make-instance '
gtk:
button
:label "Hello World!"
:signal (list 'clicked
:label "Hello World!"
:signal (list 'clicked
- #'(lambda (button)
- (print button) (write-line "clicked"))
- :object t)))
-
-
+ #'(lambda ()
+ (write-line "Hello World!"))))
+ :signal (list 'delete-event
+ #'(lambda (event)
+ (declare (ignore event))
+ (write-line "Destroying window")
+ nil ; Returning NIL generates a destroy event
+ )))