glib/gobjetc: fix filtering to filter out only gobject slots
authorDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Wed, 17 Jun 2009 07:45:57 +0000 (11:45 +0400)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Wed, 17 Jun 2009 07:45:57 +0000 (11:45 +0400)
glib/gobject.meta.lisp

index 6874d23..d72494b 100644 (file)
   (iter (with slots = (class-slots class))
         (for (arg-name arg-value) on initargs by #'cddr)
         (for slot = (find arg-name slots :key #'slot-definition-initargs :test 'member))
-        (when (or (eq arg-name :pointer) (null slot))
+        (unless (and slot (typep slot 'gobject-effective-slot-definition))
           (nconcing (list arg-name arg-value)))))
 
 (defmethod initialize-instance ((instance g-object) &rest initargs &key &allow-other-keys)