GLib.VariantType.equal

### Method

# GLib VariantTypeequal

since: 2.24

#### Declaration

    gboolean
    g_variant_type_equal (
      gconstpointer type1,
      gconstpointer type2
    )

#### Description

Compares `type1` and `type2` for equality.

Only returns `TRUE` if the types are exactly equal. Even if one type is an indefinite type and the other is a subtype of it, `FALSE` will be returned if they are not exactly equal. If you want to check for subtypes, use g_variant_type_is_subtype_of().

The argument types of `type1` and `type2` are only #gconstpointer to allow use with `GHashTable` without function pointer casting. For both arguments, a valid `GVariantType` must be provided.

Available since: 2.24

#### Parameters

`type2`

  Type: `GVariantType`

  A `GVariantType`.

#### Return value

Type: `gboolean`

`TRUE` if `type1` and `type2` are exactly equal

Since 2.24