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 1bc85c256ad164e711955bebace2e077d8a35619..7db19a9bf95c33d0b3b6d7407a3958aeb3dd8daa 100644
(file)
--- a/
examples/testgtk.lisp
+++ b/
examples/testgtk.lisp
@@
-26,9
+26,10
@@
;; Kimball, Josh MacDonald and others.
;; Kimball, Josh MacDonald and others.
-;; $Id: testgtk.lisp,v 1.3
2 2005-04-25 21:45:0
5 espen Exp $
+;; $Id: testgtk.lisp,v 1.3
4 2006-02-26 23:46:5
5 espen Exp $
#+sbcl(require :gtk)
#+sbcl(require :gtk)
+#+sbcl(require :sb-posix)
#+cmu(asdf:oos 'asdf:load-op :gtk)
(defpackage "TESTGTK"
#+cmu(asdf:oos 'asdf:load-op :gtk)
(defpackage "TESTGTK"
@@
-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))