Variant.this

Creates a string #GVariant with the contents of @string.

@string must be valid UTF-8, and must not be %NULL. To encode potentially-%NULL strings, use g_variant_new() with ms as the [format string][gvariant-format-strings-maybe-types].

Parameters

string_ string

a normal UTF-8 nul-terminated string

Return Value

a floating reference to a new string #GVariant instance

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.24