Variant.dict_entry


Description:

public Variant.dict_entry (Variant key, Variant value)

Creates a new dictionary entry Variant.

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

a basic Variant, the key

value

a Variant, the value

Returns:

a floating reference to a new dictionary entry Variant