gTypeToString

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".

string
gTypeToString

Parameters

type gobject.types.GType

Type to convert from.

Return Value

Type: string

the GDA's string representing the given #GType or the name returned by #g_type_name.