Method

GLibVariantDictinsert

Declaration

void
g_variant_dict_insert (
  GVariantDict* dict,
  const gchar* key,
  const gchar* format_string,
  ...
)

Description

Inserts a value into a GVariantDict.

This call is a convenience wrapper that is exactly equivalent to calling g_variant_new() followed by g_variant_dict_insert_value().

Available since:2.40

Parameters

key const gchar*
 

The key to insert a value for.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
format_string const gchar*
 

A GVariant varargs format string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
... none
 

Arguments, as per format_string.