Value.setObject
void setObject(gobject.object.ObjectWrap vObject = null)Set the contents of a G_TYPE_OBJECT derived #GValue to v_object.
[gobject.value.Value.setObject] increases the reference count of v_object (the #GValue holds a reference to v_object). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the #GValue because you no longer need it), use [gobject.value.Value.takeObject] instead.
It is important that your #GValue holds a reference to v_object (either its own, or one it has taken) to ensure that the object won't be destroyed while the #GValue still exists).
Parameters
vObject | object value to be set |