chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be7e1e2
)
Adding destroy-event signal to the top-level window
author
espen
<espen>
Wed, 27 Oct 2004 15:27:57 +0000
(15:27 +0000)
committer
espen
<espen>
Wed, 27 Oct 2004 15:27:57 +0000
(15:27 +0000)
hello-world.lisp
patch
|
blob
|
blame
|
history
diff --git
a/hello-world.lisp
b/hello-world.lisp
index 4334c17bbb06a08995a64f02516bfac270034082..f700cb210b914d891f3a44244dcabbce36493116 100644
(file)
--- a/
hello-world.lisp
+++ b/
hello-world.lisp
@@
-1,15
+1,18
@@
-(use-package
"GTK"
)
+(use-package
:gtk
)
(make-instance 'window
(make-instance 'window
- :type :toplevel
+
;
:type :toplevel
:title "Test"
:border-width 5
:show-all t
:child (make-instance 'button
:label "Hello World!"
:signal (list 'clicked
:title "Test"
:border-width 5
:show-all t
:child (make-instance 'button
: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
+ )))