GLib.Variant.new_boolean
function new_boolean(value: Boolean): GLib.Variant {
// Gjs wrapper for g_variant_new_boolean()
}
Creates a new boolean GLib.Variant instance -- either true or false.
Since 2.24
- value
a #gboolean value
- Returns
a floating reference to a new boolean GLib.Variant instance