(setf parent (g-type-name (ensure-g-type parent))))
`(progn
(setf (gethash ,name *registered-types*) (make-object-type :name ,name :class ',class :parent ,parent :interfaces ',interfaces :properties ',properties))
- (at-init
- (format t "Registering GObject type implementation ~A for type ~A~%" ',class ,name)
+ (at-init (',class)
+ (debugf "Registering GObject type implementation ~A for type ~A~%" ',class ,name)
(with-foreign-object (query 'g-type-query)
(g-type-query (g-type-from-name ,parent) query)
(with-foreign-slots ((class-size instance-size) query g-type-query)