GNOME Bugzilla – Bug 729384
Limited access to introspection data through introspection
Last modified: 2018-02-08 12:28:03 UTC
I'm trying to access the introspection data from Javascript inside GJS. Right now I can list infos from the introspection data using the following script : const GI = imports.gi.GIRepository; let repo = GI.Repository.get_default(); let nInfos = repo.get_n_infos('GtkClutter'); for (let i = 0; i < nInfos; i++) { let info = repo.get_info('GtkClutter', i); log(info.get_name()); } My problem is that all info are GIBaseInfo and the GIBaseInfo doesn't have very much data. All the structures like : - GICallableInfo - GIConstantInfo - GIObjectInfo - etc... aren't actual GTypes and therefore are invisible in the introspection data. So I just can't do very much with the introspection data at the moment. Is there a plan to rework the way the structures describing the introspection data?
See the tracking ticket: bug 720090. Specifically, bug 560692 and bug 572415 is probably needed for this. FWIW, I think fixing this would be a huge win for binding layers because we could generate static bindings for libs like cairo and GIRepository itself (from the gir files).
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/111.