GLib.MainContext().query() is crippled and unusable
The signature of g_main_context_query
have 3 inward arguments, self
, max_priority
and n_fds
, while the signature of GLib.MainContext::query
have only 2, and n_fds
is missing. During the runtime the passed value will be 0 or an undefined value (not tested, by reading the source code), rendering it unusable.
In https://gitlab.gnome.org/GNOME/pygobject/blob/3.31.2/gi/pygi-cache.c#L381 the direction of the child argument is forced to be the same as the main argument, which is not the case here. The direction of the n_fds
argument should be PYGI_DIRECTION_FROM_PYTHON
, but it is treated as a PYGI_DIRECTION_TO_PYTHON
one.