After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729384 - Limited access to introspection data through introspection
Limited access to introspection data through introspection
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: libgirepository
2.40.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on: 560692
Blocks:
 
 
Reported: 2014-05-02 13:15 UTC by Lionel Landwerlin
Modified: 2018-02-08 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lionel Landwerlin 2014-05-02 13:15:42 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?
Comment 1 Simon Feltman 2014-05-02 21:50:12 UTC
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).
Comment 2 André Klapper 2015-02-07 17:22:28 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 3 GNOME Infrastructure Team 2018-02-08 12:28:03 UTC
-- 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.