Documentation for the GObject.registerClass method

,

I have seen the GObject.registerClass static method being used in most of the codebases I have come across but I can’t locate it anywhere in the documentation. Not even a google search returns a documentation of the GObject.registerClass method with information on its parameters and return values. What am I missing here?

Where did you see it being used?

If you want to register a new GObject-derived class, you can use GObject.type_register_static.

*edit: GObject.registerClass is used in the Gtk JavaScript bindings (GJS). See this page for documentation.

1 Like

There’s a full explanation in the GJS guide: Subclasses | GNOME JavaScript

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.