Package: gobject

Function g-type-name

Lambda List

g-type-name (gtype)

Arguments

gtype -- a g-type ID to return name for

Return Value

A string with the type name.

Details

Get the unique name that is assigned to a type ID. Note that this function, like all other GType API, cannot cope with invalid type IDs. Randomized type IDs should not be passed in and will most likely lead to a crash.

Examples

(g-type-name +g-type-double+) => "gdouble"
(g-type-name +g-type-enum+) => "GEnum"
(g-type-name (gtype "GtkButton")) => "GtkButton"    
 

See also

2020-11-13