Package: gobject

Function g-type-parent

Lambda List

g-type-parent (gtype)

Arguments

gtype -- the derived g-type ID

Return Value

The parent type of gtype.

Details

Returns the direct parent type of the passed in GType. If the passed in GType has no parent, i.e. is a fundamental type, nil is returned.

Examples

(g-type-parent "GtkWindow") => #<GTYPE :name "GtkBin" :id 134929288>
(g-type-parent "GtkContainer") => #<GTYPE :name "GtkWidget" :id 134921664>
(g-type-parent "GObject") => NIL
(g-type-parent "gdouble") => NIL    
 

See also

2020-11-14