take_variant
Description:
Set the contents of a variant Value to variant
, and takes over the
ownership of the caller's reference to variant
; the caller doesn't have to unref it any more (i.
e. the reference count of the variant is not increased).
If variant
was floating then its floating reference is converted to a hard reference.
If you want the Value to hold its own reference to variant
, use
set_variant instead.
This is an internal function introduced mainly for C marshallers.
Parameters:
this |
a valid Value of type g_type_variant |
variant |
a Variant, or null |