chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial checkin, parts of the code moved from glib/ffi.lisp
[clg]
/
examples
/
testgtk.lisp
diff --git
a/examples/testgtk.lisp
b/examples/testgtk.lisp
index 970f31165913097190df92e62a4ab50c9c9ffe28..7db19a9bf95c33d0b3b6d7407a3958aeb3dd8daa 100644
(file)
--- a/
examples/testgtk.lisp
+++ b/
examples/testgtk.lisp
@@
-26,10
+26,11
@@
;; Kimball, Josh MacDonald and others.
;; Kimball, Josh MacDonald and others.
-;; $Id: testgtk.lisp,v 1.3
1 2005-04-25 18:13:32
espen Exp $
+;; $Id: testgtk.lisp,v 1.3
4 2006-02-26 23:46:55
espen Exp $
#+sbcl(require :gtk)
#+sbcl(require :gtk)
-#+cmucl(asdf:oos 'asdf:load-op :gtk)
+#+sbcl(require :sb-posix)
+#+cmu(asdf:oos 'asdf:load-op :gtk)
(defpackage "TESTGTK"
(:use "COMMON-LISP" "GTK"))
(defpackage "TESTGTK"
(:use "COMMON-LISP" "GTK"))
@@
-305,7
+306,8
@@
(define-dialog create-color-selection (dialog "Color selection dialog"
(signal-connect dialog :cancel #'widget-destroy :object t)))
(signal-connect dialog :cancel #'widget-destroy :object t)))
-;;; Cursors
+;;; Cursors (Note: using the drawing function in Gdk is considered
+;;; deprecated in clg, new code should use Cairo instead)
(defun clamp (n min-val max-val)
(declare (number n min-val max-val))
(defun clamp (n min-val max-val)
(declare (number n min-val max-val))
@@
-665,7
+667,8
@@
(#+cmu glib:latin1-to-unicode #+sbcl identity
:pattern "_________________________ _ _________ _ _____ _ __ __ ___ ____ _____")))))
:pattern "_________________________ _ _________ _ _____ _ __ __ ___ ____ _____")))))
-;;; Layout
+;;; Layout (Note: using the drawing function in Gdk is considered
+;;; deprecated in clg, new code should use Cairo instead)
(defun layout-expose (layout event)
(when (eq (gdk:event-window event) (layout-bin-window layout))
(defun layout-expose (layout event)
(when (eq (gdk:event-window event) (layout-bin-window layout))
@@
-1935,7
+1938,7
@@
(defun create-main-window ()
:parent main-window
:child-args '(:expand nil)
:child (list (make-instance 'label :label (gtk-version)) :fill nil)
:parent main-window
:child-args '(:expand nil)
:child (list (make-instance 'label :label (gtk-version)) :fill nil)
- :child (list (make-instance 'label :label
"clg CVS version"
) :fill nil)
+ :child (list (make-instance 'label :label
(clg-version)
) :fill nil)
:child (list (make-instance 'label
:label #-cmu(format nil "~A (~A)"
(lisp-implementation-type)
:child (list (make-instance 'label
:label #-cmu(format nil "~A (~A)"
(lisp-implementation-type)