Re: Introspecting Pango



see this example:
https://mail.gnome.org/archives/commits-list/2012-August/msg00770.html
 <type name="TestTypeGUInt64" c:type="RegressTestTypeGUInt64"/>
it seems that you are missing the name attribute.
mike

On Tue, Sep 11, 2012 at 8:41 PM, John Ralls <jralls ceridwen us> wrote:
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

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list



--
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3



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