mirror of
https://github.com/tauri-apps/gir-files.git
synced 2026-01-31 00:45:15 +01:00
fix.sh: change unsupported GModule field in GdkPixbufModule to a gpointer
This commit is contained in:
@@ -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
6
fix.sh
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user