X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/b19bbc943eecd2655a0e3f32eefada102f51142f..0c5f20d91888de36d1ec15806e46f1afd5938b8b:/gtk/gtktypes.lisp?ds=sidebyside diff --git a/gtk/gtktypes.lisp b/gtk/gtktypes.lisp index 4478c51..118b95a 100644 --- a/gtk/gtktypes.lisp +++ b/gtk/gtktypes.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtktypes.lisp,v 1.43 2006-02-15 09:47:42 espen Exp $ +;; $Id: gtktypes.lisp,v 1.44 2006-02-26 15:30:01 espen Exp $ (in-package "GTK") @@ -136,8 +136,16 @@ (deftype position () '(or int (enum (:start 0) (:end -1) (:first 0) (:last -1)))) -(defmethod reader-function ((type (eql 'position)) &rest args) - (declare (ignore type args)) +(define-type-method from-alien-form ((type position) form) + (declare (ignore type)) + (from-alien-form 'int form)) + +(define-type-method from-alien-function ((type position)) + (declare (ignore type)) + (from-alien-function 'int)) + +(define-type-method reader-function ((type position)) + (declare (ignore type)) (reader-function 'int))