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 636812 - Support annotating the type of the callback in a GClosure
Support annotating the type of the callback in a GClosure
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: 2010-12-08 21:16 UTC by Evan Nemerson
Modified: 2018-01-24 19:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Evan Nemerson 2010-12-08 21:16:31 UTC
There is currently no way to annotate the callback contained in a GClosure, which limits the usefulness of methods with GClosure arguments.

For example, gtk_accel_group_connect's closure argument should contain a GtkAccelGroupActivate.

Using element-type seems logical.
Comment 1 André Klapper 2015-02-07 17:16:48 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 2 Emmanuele Bassi (:ebassi) 2018-01-24 19:11:29 UTC
Unlikely to happen; typically, the arguments in GClosures are marshalled via GValues anyway, and it's up to the language binding to turn GValues into real types before dispatching the native callback.