chiark / gitweb /
Moved handle box demo to avoid compiler warning.
authorespen <espen>
Mon, 18 Apr 2005 10:39:32 +0000 (10:39 +0000)
committerespen <espen>
Mon, 18 Apr 2005 10:39:32 +0000 (10:39 +0000)
examples/testgtk.lisp

index 10bfd03b248c629efcd9475e06dcbbc8757d1177..e9fa263ba1f6a33d6e25bb6279ebe51728b3bcc0 100644 (file)
@@ -15,7 +15,7 @@
 ;; License along with this library; if not, write to the Free Software
 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-;; $Id: testgtk.lisp,v 1.26 2005/04/17 21:52:17 espen Exp $
+;; $Id: testgtk.lisp,v 1.27 2005/04/18 10:39:32 espen Exp $
 
 (defpackage "TESTGTK"
   (:use "COMMON-LISP" "GTK"))
@@ -480,29 +480,6 @@ (define-toplevel create-font-selection (window "Font Button" :resizable nil)
            :use-font t :title "Font Selection Dialog")))
 
 
-;;; Handle box
-
-(define-toplevel create-handle-box (window "Handle Box Test" :border-width 20)
-  (make-instance 'v-box 
-   :parent window
-   :child (create-label "Above")
-   :child (make-instance 'h-separator)
-   :child (make-instance 'h-box 
-          :spacing 10
-          :child (list
-                  (make-instance 'handle-box
-                   :child (create-toolbar window)
-                   :signal (list 'child-attached
-                            #'(lambda (child)
-                                (format t "~A attached~%" child)))
-                   :signal (list 'child-detached
-                            #'(lambda (child)
-                                (format t "~A detached~%" child))))
-                  :expand nil :fill :nil))
-   :child (make-instance 'h-separator)
-   :child (create-label "Below")))
-
-
 ;;; Icon View
 
 #+gtk2.6
@@ -1729,6 +1706,28 @@ (define-toplevel create-toolbar-window (window "Toolbar test" :resizable nil)
   (container-add window (create-toolbar window)))
 
 
+;;; Handle box
+
+(define-toplevel create-handle-box (window "Handle Box Test" :border-width 20)
+  (make-instance 'v-box 
+   :parent window
+   :child (create-label "Above")
+   :child (make-instance 'h-separator)
+   :child (make-instance 'h-box 
+          :spacing 10
+          :child (list
+                  (make-instance 'handle-box
+                   :child (create-toolbar window)
+                   :signal (list 'child-attached
+                            #'(lambda (child)
+                                (format t "~A attached~%" child)))
+                   :signal (list 'child-detached
+                            #'(lambda (child)
+                                (format t "~A detached~%" child))))
+                  :expand nil :fill :nil))
+   :child (make-instance 'h-separator)
+   :child (create-label "Below")))
+
 
 ;;; Tooltips test