GNOME Bugzilla – Bug 635364
Add C include and exported packages information to GIR
Last modified: 2011-01-19 11:54:23 UTC
GdkPixbuf-2.0.gir does not currently include information on the C header to include or the exported packages, both of which are important for generating Vala bindings from the GIR.
Created attachment 174918 [details] [review] introspection: Add C include and exported packages information to GIR
Looks good to me.
Review of attachment 174918 [details] [review]: ::: gdk-pixbuf/Makefile.am @@ +679,2 @@ GdkPixbuf-2.0.gir: libgdk_pixbuf-2.0.la Makefile +GdkPixbuf_2_0_gir_SCANNERFLAGS = --warn-all --strip-prefix=Gdk --c-include="gdk-pixbuf/gdk-pixdata.h" Shouldn't that be --c-include="gdk-pixbuf/gdk-pixbuf.h" The c:include is intended to specify which C header library consumers need to access what's in the .gir, and that's definitely not gdk-pixdata.h in this case.
Fixed with the change mentioned by Colin. Attachment 174918 [details] pushed as 9671e0f - introspection: Add C include and exported packages information to GIR
The problem with just using gdk-pixbuf/gdk-pixbuf.h is that gdk-pixbuf/gdk-pixdata.h doesn't get included, and the GdkPixdata stuff is part of the GdkPixbuf GIR. The current Vala bindings work around this by using gdk-pixbuf/gdk-pixdata.h instead, which will include gdk-pixbuf/gdk-pixbuf.h. Perhaps --c-include="gdk-pixbuf/gdk-pixbuf.h,gdk-pixbuf/gdk-pixdata.h"? Or is the fact that gdk-pixbuf/gdk-pixbuf.h doesn't include gdk-pixbuf/gdk-pixdata.h unintentional?