VariantG.newVariant

Boxes value. The result is a #GVariant instance representing a variant containing the original value.

If child is a floating reference (see glib.variant.VariantG.refSink), the new instance takes ownership of child.

class VariantG
static
newVariant

Parameters

value glib.variant.VariantG

a #GVariant instance

Return Value

Type: glib.variant.VariantG

a floating reference to a new variant #GVariant instance