Variant.this

Creates a string glib.Variant with the contents of string.

string must be valid UTF-8, and must not be NULL. To encode potentially-NULL strings, use 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 glib.Variant instance

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.24