Variant.newVariant

glib.variant.Variant newVariant(glib.variant.Variant value) static nothrow

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

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

Parameters

valuea #GVariant instance

Returns

a floating reference to a new variant #GVariant instance