### Method

# GLib VariantType is_subtype_of

#### Declaration [src]

    gboolean
    g_variant_type_is_subtype_of (
      const GVariantType* type,
      const GVariantType* supertype
    )

#### Description [src]

Checks if `type` is a subtype of `supertype`.

This function returns true if `type` is a subtype of `supertype`. All types are considered to be subtypes of themselves. Aside from that, only indefinite types can have subtypes.

#### Parameters

`supertype`

  Type: `GVariantType`

  Type of potential supertype.

  The data is owned by the caller of the method.

#### Return value

Type: `gboolean`

True if `type` is a subtype of `supertype` Since 2.24.