Introspecting Pango



I'm trying to make Pango introspect on OSX, and The following defines are giving me trouble:
#define PANGO_GLYPH_EMPTY           ((PangoGlyph)0x0FFFFFFF)
#define PANGO_GLYPH_INVALID_INPUT   ((PangoGlyph)0xFFFFFFFF)
#define PANGO_GLYPH_UNKNOWN_FLAG    ((PangoGlyph)0x10000000)

Produce the following in Pango-1.0.gir:
   <constant name="GLYPH_EMPTY" value="268435455" c:type="PANGO_GLYPH_EMPTY">
     <type c:type="PangoGlyph"/>
   </constant>
Which dependent introspections (including PangoCairo) reject with the following:
Pango-1.0.gir:40:34: error: Line 40, character 34: The attribute 'name' on the element 'type' must be specified
error parsing file Pango-1.0.gir: Line 40, character 34: The attribute 'name' on the element 'type' must be specified
make[4]: *** [Pango-1.0.typelib] Error 1

No doubt there's some magic annotation to fix that, but I can't see it from the annotations page on GnomeLive [1]. What is it?

Regards,
John Ralls

[1] https://live.gnome.org/GObjectIntrospection/Annotations



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]