(assert (= (length initargs) 2) nil "POINTER can not be combined with other initargs (~A)" initargs)
(call-next-method))
(let ((pointer (create-gobject-from-class-and-initargs class initargs)))
- (call-next-method class :pointer pointer))))
+ (apply #'call-next-method class :pointer pointer initargs))))
+
+(defmethod slot-boundp-using-class ((class gobject-class) object (slot gobject-property-effective-slot-definition))
+ (handler-case
+ (progn (g-object-property-type object (gobject-property-effective-slot-definition-g-property-name slot) :assert-readable t) t)
+ (property-unreadable-error () nil)))
(defmethod slot-value-using-class ((class gobject-class) object (slot gobject-property-effective-slot-definition))
(g-object-call-get-property object
(gobject-effective-slot-definition-g-property-type slot)))
(defmethod slot-value-using-class ((class gobject-class) object (slot gobject-fn-effective-slot-definition))
- (funcall (gobject-fn-effective-slot-definition-g-getter-fn slot) object))
+ (let ((fn (gobject-fn-effective-slot-definition-g-getter-fn slot)))
+ (when fn
+ (funcall fn object))))
(defmethod (setf slot-value-using-class) (new-value (class gobject-class) object (slot gobject-fn-effective-slot-definition))
(funcall (gobject-fn-effective-slot-definition-g-setter-fn slot) object new-value))