Limited access to introspection data through introspection
@djdeath
Submitted by Lionel Landwerlin Link to original bug (#729384)
Description
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?