-(defcallback weak-notify (nil (data int) (location pointer))
- (let ((object (find-cached-instance location)))
- (when object
-;; (warn "~A being finalized by the GObject system while still in existence in lisp" object)
- (slot-makunbound object 'location)
- (remove-cached-instance location))))
-
-(defbinding %object-weak-ref (object) nil
- (object gobject)
- ((callback weak-notify) pointer)
- (0 unsigned-int))
-
-(defbinding %object-weak-unref () nil
- (location pointer)
- ((callback weak-notify) pointer)
- (0 unsigned-int))
-
-