fix.sh: change unsupported GModule field in GdkPixbufModule to a gpointer

This commit is contained in:
Paolo Borelli
2021-01-03 18:18:28 +01:00
parent a9f8f347f5
commit 7025225c70
2 changed files with 7 additions and 1 deletions

View File

@@ -4059,7 +4059,7 @@ is loaded and must set the function pointers of the #GdkPixbufModule.</doc>
</field>
<field name="module" writable="1">
<doc xml:space="preserve">the loaded #GModule.</doc>
<type name="GModule.Module" c:type="GModule*"/>
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="info" writable="1">
<doc xml:space="preserve">a #GdkPixbufFormat holding information about the module.</doc>

6
fix.sh
View File

@@ -56,6 +56,12 @@ xmlstarlet ed -P -L \
-u '//_:method[@c:identifier="gdk_frame_clock_get_timings"]/_:return-value/@transfer-ownership' -v "none" \
Gdk-3.0.gir
# replace gmodule with gpointer
xmlstarlet ed -P -L \
-u '//_:record[@name="PixbufModule"]/_:field[@name="module"]/_:type/@name' -v "gpointer" \
-u '//_:record[@name="PixbufModule"]/_:field[@name="module"]/_:type/@c:type' -v "gpointer" \
GdkPixbuf-2.0.gir
# replace "gint" response_id parameters with "ResponseType"
xmlstarlet ed -P -L \
-u '//_:parameter[@name="response_id"]/_:type[@name="gint"]/@c:type' -v "GtkResponseType" \