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 666027 - gobject-introspection doesn't give us information about vfunc overrides on subtypes
gobject-introspection doesn't give us information about vfunc overrides on su...
Status: RESOLVED WONTFIX
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-12-12 20:46 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2018-01-24 18:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jasper St. Pierre (not reading bugmail) 2011-12-12 20:46:03 UTC
>>> from gi.repository import Gtk. Gio
>>> Gtk.Application.do_startup == Gio.Application.do_startup
True

This shouldn't be the case. gtk_application_real_startup should be exposed as Gtk.Application.do_startup, because it's set in the class struct as the implementation of the vfunc. To do this properly,

gobject-introspection should tell us when a subtype puts a vfunc implementation in its class struct, so we can expose the function at that location. I don't know how much it would break if we just had a GIVFuncInfo* with the same name in the subclass's info.
Comment 1 Matthias Clasen 2011-12-14 03:13:23 UTC
I've never understood why introspection needs to poke into all these private details.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-01-28 01:14:23 UTC
OK, so I managed to fix this in a hacky way by comparing the vfunc pointers in the class structs.
Comment 3 André Klapper 2015-02-07 17:14:28 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 4 Emmanuele Bassi (:ebassi) 2018-01-24 18:39:12 UTC
Definitely not going to happen.