Fix crash when accessing Pango.FontFamily.Faces

This is similar to the fix for FontFamily in #35, and adds metadata for the parent class.
Without this, I found that the conversion to GObject failed in GLib.Object.GetObject and the pointer was deleted, corrupting memory for the next call.

Fixes: #159
This commit is contained in:
Cameron White 2020-08-27 20:38:56 -04:00
parent cc3d359b33
commit ca7ed79e77
No known key found for this signature in database
GPG Key ID: 4CF80E80E77C5C35

View File

@ -101,7 +101,9 @@
<attr path="/api/namespace/struct[@cname='PangoScriptIter']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='PangoWin32FontCache']" name="hidden">1</attr>
<attr path="/api/namespace/*[@cname='PangoWin32Family']" name="parent">PangoFontFamily</attr>
<attr path="/api/namespace/*[@cname='PangoWin32Face']" name="parent">PangoFontFace</attr>
<attr path="/api/namespace/*[@cname='PangoCoreTextFamily']" name="parent">PangoFontFamily</attr>
<attr path="/api/namespace/*[@cname='PangoCoreTextFace']" name="parent">PangoFontFace</attr>
<move-node path="/api/namespace/class[@name='Version']/method[@cname='pango_version_check']">/api/namespace/class[@name='Global']</move-node>
<move-node path="/api/namespace/class[@name='Version']/method[@cname='pango_version_string']">/api/namespace/class[@name='Global']</move-node>
</metadata>