VariantG.newDictEntry

Creates a new dictionary entry #GVariant. key and value must be non-null. key must be a value of a basic type (ie: not a container).

If the key or value are floating references (see glib.variant.VariantG.refSink), the new instance takes ownership of them as if via glib.variant.VariantG.refSink.

Parameters

key glib.variant.VariantG

a basic #GVariant, the key

value glib.variant.VariantG

a #GVariant, the value

Return Value

Type: glib.variant.VariantG

a floating reference to a new dictionary entry #GVariant