GNOME Bugzilla – Bug 628927
Update to GIR 1.2
Last modified: 2010-09-15 21:10:57 UTC
Vala writes GIR 1.1, but gobject-introspection has moved on to 1.2 and no longer supports 1.1.
Created attachment 169628 [details] [review]
Write GIR version 1.2 instead of version 1.1.
AFAICT, this patch accounts for all the differences between 1.1 and 1.2:
First, lots of type names changed, adding a 'g' prefix (e.g., gint instead of int). In order to make this work, I added a GIR attribute (and applied it to some stuff in glib-2.0.vapi). Right now it only supports setting the name on struct and class types, provides room to expand in the future if the GIR output needs to be customized.
Next, there is no more "any" type. Other girs seem to use gpointer instead, so that is what I've done.
Finally, instead of <requires><class name="..."/><interface name="..."/></requires>, 1.2 uses a <prerequisite name=""> element.
Author: Evan Nemerson <email@example.com>
Date: Mon Sep 6 15:40:03 2010 -0700
Write GIR version 1.2 instead of version 1.1
Fixes bug 628927.