gTypeToString

fnstring gTypeToString(gobject.types.GType type)

Converts a GType to its string representation (use [gda.global.gTypeFromString] for the operation in the other direction).

This function wraps [gobject.global.typeName] but for common types it provides an easier to understand and remember name. For Example the G_TYPE_STRING is converted to "string" whereas [gobject.global.typeName] converts it to "gchararray".

Parameters

typeType to convert from.

Returns

the GDA's string representing the given #GType or the name

returned by #g_type_name.