Package: gobject

Function gobject:type-name

Lambda List

gobject:type-name (gtype)

Arguments

gtype -- a g:type-t type ID to return the type name for

Return Value

The string with the type name, or nil.

Details

Get the unique name that is assigned to a type ID. Note that this function returns nil, when gtype is not known.

Examples

(g:type-name 60) => "gdouble"
(g:type-name "gdouble") => "gdouble"
(g:type-name (g:gtype "gdouble")) => "gdouble"
(g:type-name "unknown")
=> WARNING: unknown is not known to the GType system
=> NIL    
 

See also

2024-9-16