gobject:define-g-object-class: do not insert g-object as a superclass => fixes circul...
authorKalyanov Dmitry <Kalyanov.Dmitry@gmail.com>
Thu, 8 Oct 2009 14:21:07 +0000 (18:21 +0400)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Thu, 8 Oct 2009 17:46:30 +0000 (21:46 +0400)
glib/gobject.generating.lisp

index 0abcfc9..f9283a3 100755 (executable)
                                  (&rest properties))
   (setf properties (mapcar #'parse-property properties))
   `(progn
-     (defclass ,name (,superclass ,@(mapcar #'interface->lisp-class-name interfaces))
+     (defclass ,name (,@(when (and superclass (not (eq superclass 'g-object))) (list superclass)) ,@(mapcar #'interface->lisp-class-name interfaces))
        (,@(mapcar (lambda (property) (meta-property->slot name property)) properties))
        (:metaclass gobject-class)
        (:g-type-name . ,g-type-name)