Package: gobject

Function gobject:type-class-peek-parent

Lambda List

gobject:type-class-peek-parent (class)

Arguments

class -- a g:type-class instance to retrieve the parent class for

Return Value

The parent class of class.

Details

This is a convenience function often needed in class initializers. It returns the class intance of the immediate parent type of the class passed in. Since derived classes hold a reference count on their parent classes as long as they are instantiated, the returned class will always exist. This function is essentially equivalent to:
(g:type-class-peek (g:type-parent class))  
 

See also

#2025-3-27