GLib.Variant.new_object_path
function new_object_path(object_path: String): GLib.Variant {
// Gjs wrapper for g_variant_new_object_path()
}
Creates a D-Bus object path GLib.Variant with the contents of @string. @string must be a valid D-Bus object path. Use GLib.variant_is_object_path if you're not sure.
Since 2.24
- object_path
a normal C nul-terminated string
- Returns
a floating reference to a new object path GLib.Variant instance