VariantType.equal

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 glib.variant_type.VariantType.isSubtypeOf.

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.

class VariantType
bool
equal

Parameters

type2 glib.variant_type.VariantType

a #GVariantType

Return Value

Type: bool

true if type1 and type2 are exactly equal

Since 2.24