Variant.newTuple

Creates a new tuple #GVariant out of the items in children. The type is determined from the types of children. No entry in the children array may be null.

If n_children is 0 then the unit tuple is constructed.

If the children are floating references (see glib.variant.Variant.refSink), the new instance takes ownership of them as if via glib.variant.Variant.refSink.

  1. Variant newTuple(T vals)
  2. glib.variant.Variant newTuple(glib.variant.Variant[] children)
    class Variant

Parameters

children glib.variant.Variant[]

the items to make the tuple out of

Return Value

Type: glib.variant.Variant

a floating reference to a new #GVariant tuple