From: espen Date: Mon, 18 Apr 2005 10:39:32 +0000 (+0000) Subject: Moved handle box demo to avoid compiler warning. X-Git-Tag: clg-0-90~18 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/09bc24573fc339cb1f1d48d70878ef9fc32a77f5 Moved handle box demo to avoid compiler warning. --- diff --git a/examples/testgtk.lisp b/examples/testgtk.lisp index 10bfd03..e9fa263 100644 --- a/examples/testgtk.lisp +++ b/examples/testgtk.lisp @@ -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