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 Variant.typeIsSubtypeOf.

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

class VariantType


type2 VariantType

Return Value

Type: bool

TRUE if type1 and type2 are exactly equal

Since 2.24