chiark / gitweb /
Updated due to API changes
authorespen <espen>
Sun, 21 Oct 2001 23:24:09 +0000 (23:24 +0000)
committerespen <espen>
Sun, 21 Oct 2001 23:24:09 +0000 (23:24 +0000)
hello-world.lisp

index d89a58539bfe3e85b4133d5c180a1c4cafd813a3..0f4b5ec83188016b4515a970e7c32041498bf190 100644 (file)
@@ -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)))