Package: gobject

Function g-object-type-name

Lambda List

g-object-type-name (object)

Arguments

object -- a g-object instance to return the type name for

Return Value

A string with type name of the object argument.

Details

Gets the name of the type for an instance. Returns nil, if the object argument is nil.

This function calls the g-type-from-instance and g-type-name functions to get the name, but checks for a non-nil argument.

Examples

(g-object-type-name (make-instance 'gtk-label)) => "GtkLabel"    
This is equivalent to:
(g-type-name (g-type-from-instance (make-instance 'gtk-label))) => "GtkLabel"    
 

See also

2021-9-11