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 592279 - Introspection support
Introspection support
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.19.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 568613 (view as bug list)
Depends on: 592146
Blocks: 585444
 
 
Reported: 2009-08-19 00:43 UTC by Colin Walters
Modified: 2009-12-20 03:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[introspection] Build introspection data for gdk-pixbuf, gdk, and gtk (5.12 KB, patch)
2009-08-19 00:45 UTC, Colin Walters
none Details | Review
[introspection] Merge in Gdk-custom.c introspection annotations (27.40 KB, patch)
2009-08-19 00:45 UTC, Colin Walters
none Details | Review
[introspection] Merge in Gtk-custom.c annotations (157.41 KB, patch)
2009-08-19 00:45 UTC, Colin Walters
none Details | Review
[introspection] Build introspection data for gdk-pixbuf, gdk, and gtk (5.16 KB, patch)
2009-08-19 23:01 UTC, Colin Walters
none Details | Review
[introspection] Merge in Gdk-custom.c introspection annotations (28.55 KB, patch)
2009-08-19 23:01 UTC, Colin Walters
none Details | Review
[introspection] Merge in Gtk-custom.c annotations (157.88 KB, patch)
2009-08-19 23:01 UTC, Colin Walters
none Details | Review
Merge in Gtk-custom.c annotations (157.75 KB, patch)
2009-11-11 10:34 UTC, Tomeu Vizoso
none Details | Review
Add a couple of annotations to collection arguments (1.42 KB, patch)
2009-11-11 10:35 UTC, Tomeu Vizoso
none Details | Review

Description Colin Walters 2009-08-19 00:43:32 UTC
This is a *work in progress* series of patches.  Attaching here for initial
review comments, and so the work doesn't get lost.
Comment 1 Colin Walters 2009-08-19 00:45:52 UTC
Created attachment 141123 [details] [review]
[introspection] Build introspection data for gdk-pixbuf, gdk, and gtk

Generate .gir and .typelib files for gdk-pixbuf, gdk, and gtk.
Comment 2 Colin Walters 2009-08-19 00:45:55 UTC
Created attachment 141124 [details] [review]
[introspection] Merge in Gdk-custom.c introspection annotations

The Gdk-custom.c file in gir-repository contained a number of
introspection annotations.  Merge those into the GDK source files.

Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
Comment 3 Colin Walters 2009-08-19 00:45:58 UTC
Created attachment 141125 [details] [review]
[introspection] Merge in Gtk-custom.c annotations

The Gtk-custom.c file in gir-repository contained a number of
introspection annotations.  Merge those into the GTK source files.

Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
Comment 4 Colin Walters 2009-08-19 01:44:06 UTC
*** Bug 568613 has been marked as a duplicate of this bug. ***
Comment 5 Colin Walters 2009-08-19 23:01:26 UTC
Created attachment 141194 [details] [review]
[introspection] Build introspection data for gdk-pixbuf, gdk, and gtk

Generate .gir and .typelib files for gdk-pixbuf, gdk, and gtk.
Comment 6 Colin Walters 2009-08-19 23:01:33 UTC
Created attachment 141195 [details] [review]
[introspection] Merge in Gdk-custom.c introspection annotations

The Gdk-custom.c file in gir-repository contained a number of
introspection annotations.  Merge those into the GDK source files.

Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
Comment 7 Colin Walters 2009-08-19 23:01:40 UTC
Created attachment 141196 [details] [review]
[introspection] Merge in Gtk-custom.c annotations

The Gtk-custom.c file in gir-repository contained a number of
introspection annotations.  Merge those into the GTK source files.

Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
Comment 8 Colin Walters 2009-08-19 23:02:45 UTC
These updated patches add the -enumtypes.c files to the scans, fix up some trailing whitespace, and add a few more annotations.
Comment 9 Matthias Clasen 2009-08-25 04:13:18 UTC
Without looking in too much detail, these patches look generally fine to me.

Do we need to bump 

GTK_DOC_CHECK([1.11])

to require a gtk-doc that is new enough to handle these annotations ?
Comment 10 Emmanuele Bassi (:ebassi) 2009-08-25 09:45:22 UTC
gtk-doc 1.11 is not enough: we'll need a 1.12 release at some point, otherwise gtk-doc will spew out a lot of warnings and the docs will look very odd (unfortunately, it's the current situation with Clutter).
Comment 11 Tomeu Vizoso 2009-11-11 10:34:49 UTC
Created attachment 147457 [details] [review]
Merge in Gtk-custom.c annotations

The Gtk-custom.c file in gir-repository contained a number of
introspection annotations.  Merge those into the GTK source files.

Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
Comment 12 Tomeu Vizoso 2009-11-11 10:35:30 UTC
Created attachment 147459 [details] [review]
Add a couple of annotations to collection arguments
Comment 13 Tomeu Vizoso 2009-11-11 10:37:18 UTC
Have rebased walter's gtk commit and added a couple more of annotations.
Comment 14 Dan Winship 2009-11-22 18:22:21 UTC
These patches pick up some private symbols because of internal .h files that get sucked into the scan. Eg, $(gdk_c_sources) includes gdkinternals.h, gdkpoly-generic.h and gdkregion-generic.h
Comment 15 Johan (not receiving bugmail) Dahlin 2009-12-09 18:54:50 UTC
I create a new introspection branch and:
- Applied the patches from Colin and Tomeu
- Made sure the scanner isn't parsing private headers as Dan pointed out
- Added introspection.m4 to the source to avoid needing that when distchecking

I had to fix a bug in gobject-introspection, so it depend on HEAD of that.
Comment 16 Johan (not receiving bugmail) Dahlin 2009-12-16 19:38:22 UTC
This got pushed to master, thanks!
Comment 17 paul 2009-12-20 02:44:26 UTC
this is great, except

make  gtk-update-icon-cache 
Makefile:2669: no file name for `include'

and line 2669 in Makefile is

include $(INTROSPECTION_MAKEFILE)

and the build dies
Comment 18 paul 2009-12-20 03:08:14 UTC
whoops, this seems to be related to commit ff1343a594383e0d88b1aecdf34025dd3ee36ed6 and i only noticed introspection near the scene of the crime
sorry