Closed sdroege closed 5 months ago
Relevant part of the gir file for reference
<record name="StaticRecMutex" c:type="GStaticRecMutex" introspectable="0">
<field name="mutex" readable="0" private="1">
<type name="StaticMutex" c:type="GStaticMutex"/>
</field>
<field name="depth" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
As discussed on Matrix, we're just going to ignore those types. All this API is deprecated since a long time and it's not easy to fix at all.
This is now resolved in main
Ubuntu issue: https://bugs.launchpad.net/ubuntu/+source/rust-glib-sys/+bug/2061202
(note that Ubuntu is regenerating against their own gir files but in this case it doesn't matter)
We generate it as
Which is consistent with the .gir file. Unfortunately the gir file is incomplete though
Similarly the
GStaticMutex
struct and others are wrong.