From: espen Date: Sun, 30 Jan 2005 15:08:02 +0000 (+0000) Subject: Added bindigns to GdkAtom X-Git-Url: https://git.distorted.org.uk/~mdw/clg/commitdiff_plain/628fd576ba4f6e93fbdc993e536ec8252d2a62ab Added bindigns to GdkAtom --- diff --git a/gdk/defpackage.lisp b/gdk/defpackage.lisp index 52480f1..74c2165 100644 --- a/gdk/defpackage.lisp +++ b/gdk/defpackage.lisp @@ -1,6 +1,7 @@ (defpackage "GDK" (:use "GLIB" "COMMON-LISP" "AUTOEXPORT") (:shadowing-import-from "PCL" - "CLASS-NAME" "CLASS-OF" "FIND-CLASS")) + "CLASS-NAME" "CLASS-OF" "FIND-CLASS") + (:shadow "ATOM")) diff --git a/gdk/gdk.lisp b/gdk/gdk.lisp index 7e73511..8fffdb6 100644 --- a/gdk/gdk.lisp +++ b/gdk/gdk.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: gdk.lisp,v 1.12 2004-12-20 00:32:15 espen Exp $ +;; $Id: gdk.lisp,v 1.13 2005-01-30 15:08:03 espen Exp $ (in-package "GDK") @@ -127,6 +127,13 @@ (defbinding flush () nil) (defbinding beep () nil) +(defbinding atom-intern (atom-name &optional only-if-exists) atom + ((string atom-name) string) + (only-if-exists boolean)) + +(defbinding atom-name () string + (atom atom)) + ;;; Visuals @@ -652,7 +659,7 @@ (defbinding keyval-to-upper () unsigned-int (keyval unsigned-int)) -(defbinding keyval-to-lower ()unsigned-int +(defbinding keyval-to-lower () unsigned-int (keyval unsigned-int)) (defbinding (keyval-is-upper-p "gdk_keyval_is_upper") () boolean diff --git a/gdk/gdktypes.lisp b/gdk/gdktypes.lisp index 58a5b3b..f696675 100644 --- a/gdk/gdktypes.lisp +++ b/gdk/gdktypes.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: gdktypes.lisp,v 1.10 2004-12-26 11:47:24 espen Exp $ +;; $Id: gdktypes.lisp,v 1.11 2005-01-30 15:08:03 espen Exp $ (in-package "GDK") @@ -54,7 +54,7 @@ (deftype point () '(vector int 2)) (deftype segment () '(vector int 4)) (deftype trapezoid () '(vector double-float 6)) - +(deftype atom () 'unsigned-int) ;; Could this just as well have been a vector?