GContentType, GAppInfo, GSpawn, GThread introspection annotations missing on Windows
Edit: See https://github.com/msys2/MINGW-packages/issues/21227#issuecomment-2205915457 for a writeup of the issue. tl;dr: bisection points to !3636 (merged); this is essentially the same issue as !4106 (merged) but for g_content_type_guess()
Since one of the last versions we have a problem with multiple of the Gio.content* methods on Windows.
It started with one of them not available to the python bindings, which got fixed in !4106 (merged)
Now we receive the error
Gio.content_type_guess() takes exactly 4 arguments (2 given)
although the python binding docs only specify 2 arguments. See https://lazka.github.io/pgi-docs/#Gio-2.0/functions.html#Gio.content_type_guess
I scanned the changelog and found no mention of a breaking change for this method.
See the analysis and the approach to the fix.
Files needing to be fixed:
-
gspawn.c
: !4158 (merged) -
gappinfo.c
: !4167 (merged) -
gthread.c
: !4168 (merged) -
gcontenttype.c
: !4167 (merged)