VariantG.newObjectPath

Creates a D-Bus object path #GVariant with the contents of object_path. object_path must be a valid D-Bus object path. Use glib.variant.VariantG.isObjectPath if you're not sure.

class VariantG
static
newObjectPath
(
string objectPath
)

Parameters

objectPath string

a normal C nul-terminated string

Return Value

Type: glib.variant.VariantG

a floating reference to a new object path #GVariant instance