Method

GLibVariantget_boolean

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

Returns: gboolean
 

TRUE or FALSE.