Valadoc | Vala | Tutorial | API-References | Markup

take_object


Description:

public void take_object (owned Object v_object)

Sets the contents of a typeof (Object) derived Value to v_object and takes over the ownership of the callers 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 Value to hold its own reference to v_object, use set_object instead.

Parameters:

v_object object value to be set