Method

GLibVariantget_boolean

since: 2.24

Declaration

gboolean
g_variant_get_boolean (
  GVariant* value
)

Description

Returns the boolean value of value.

It is an error to call this function with a value of any type other than G_VARIANT_TYPE_BOOLEAN.

Available since: 2.24

Return value

Type: gboolean

TRUE or FALSE.