Package: pygobject / 3.55.3-3

Metadata

Package Version Patches format
pygobject 3.55.3-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
pygi invoke Handle caller allocated fixed size C Arrays.patch | (download)

gi/pygi-invoke.c | 7 7 + 0 - 0 !
tests/test_gi.py | 31 31 + 0 - 0 !
2 files changed, 38 insertions(+)

 pygi-invoke: handle caller-allocated fixed-size c-arrays

Since commit 75fb7de1 we have an improved handling for caller-allocated
arrays, but that did not take in consideration that C-arrays can also be
caller-allocated when they have a known fixed size.

So handle the case and test them with the marshalling tests that we
already have.

Fixes: 75fb7de1
Closes: #743
Helps: #687

Fix reading array length on big endian.patch | (download)

gi/pygi-cache-array.c | 13 9 + 4 - 0 !
gi/pygi-cache.h | 1 1 + 0 - 0 !
2 files changed, 10 insertions(+), 4 deletions(-)

 fix reading array length on big-endian

Do not assume that we can read the argument as a v_long.
Use pygi_argument_to_gsize to read the correct bytes on big-endian too.

Fixes: 3f04aa68 ("One function to wrap a C array")

events fix main context iteration without thread default.patch | (download)

gi/events.py | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 events: fix main context iteration without thread default

The internal code tries to use _get_event_loop to see if an event loop
exists. In that case, it is completely fine if there is no thread
default main context, so only assert when force_implicit is set to True.