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 546739 - Introspection should know precise signal parameter types
Introspection should know precise signal parameter types
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 561711 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-08-07 08:27 UTC by Murray Cumming
Modified: 2015-02-07 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2008-08-07 08:27:30 UTC
GType can't identify some types, so it reports generic types for some signal properties.

For instance, there's no way with the current GType system to discover that the GtkWidget::enter-notify-event signal actually has a GdkEventCrossing* parameter rather than a GdkEvent* parameter. All these *-event signals have this problem.

There's a similar problem with pointer arguments. For instance, int* must be registered as a generic gpointer.

It would be nice if the new introspection system could provide this information.
Comment 1 Colin Walters 2008-09-19 03:51:32 UTC
For the first, it would be possible to add an annotation which would act as advisory data on things like signals.  However we couldn't hide the fact that the parameter is C side actually a GdkEvent - this would have to be additional information.

As for int*, there is a facility for marking parameters as (out) or (inout).
Comment 2 Dan Winship 2008-11-17 20:25:38 UTC
i suggested an (actual-type) annotation in bug 561264 comment 1 which could be used here too.
Comment 3 Dan Winship 2008-11-20 18:23:03 UTC
*** Bug 561711 has been marked as a duplicate of this bug. ***
Comment 4 Johan (not receiving bugmail) Dahlin 2009-01-12 23:54:50 UTC
2009-01-12  Johan Dahlin  <jdahlin@async.com.br>

        Bug 546739 – Introspection should know precise signal parameter types

        * giscanner/annotationparser.py:
        * tests/scanner/annotation-1.0-expected.gir:
        * tests/scanner/annotation-1.0-expected.tgir:
        * tests/scanner/annotation.c (annotation_object_class_init):

        Annotations are parsed for signals, the (type) annotation is introduced.
Comment 5 André Klapper 2015-02-07 16:55:13 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]