Package: gobject
Function gobject:type-class-peek-parent
Lambda Listgobject:type-class-peek-parent (class) ArgumentsReturn ValueThe 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