Variant.this

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 g_variant_ref_sink()), the new instance takes ownership of them as if via g_variant_ref_sink().

Parameters

key Variant

a basic #GVariant, the key

value Variant

a #GVariant, the value

Return: a floating reference to a new dictionary entry #GVariant

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.24