Sets the contents of a G_TYPE_OBJECT derived gobject.Value to v_object and takes over the ownership of the caller’s reference to v_object; the caller doesn’t have to unref it any more (i.e. the reference count of the object is not increased).
If you want the gobject.Value to hold its own reference to v_object, use Value.setObject instead.
object value to be set
2.4
Sets the contents of a G_TYPE_OBJECT derived gobject.Value to v_object and takes over the ownership of the caller’s reference to v_object; the caller doesn’t have to unref it any more (i.e. the reference count of the object is not increased).
If you want the gobject.Value to hold its own reference to v_object, use Value.setObject instead.