Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update auto-generated code to GLib 2.76 and GTK 4.10 #39

Merged
merged 4 commits into from
Sep 9, 2023
Merged

Conversation

jwahlstrand
Copy link
Member

@jwahlstrand jwahlstrand commented Sep 9, 2023

This will allow us to use the new dialogs in 4.10. Deprecated stuff in GTK 4.10 is still supported.

This also fixes a sporadic segfault in the tests that happens when a GtkDialog is freed before its parent GtkWindow. I have never seen this happen outside the tests, but it's probably worth creating an issue about it.

now based on GLib 2.76 and GTK4 4.10
@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2023

Codecov Report

Merging #39 (84f5ffa) into main (d624598) will increase coverage by 0.36%.
The diff coverage is 96.15%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   84.72%   85.08%   +0.36%     
==========================================
  Files          43       43              
  Lines        4372     4386      +14     
==========================================
+ Hits         3704     3732      +28     
+ Misses        668      654      -14     
Files Changed Coverage Δ
GI/src/gidocs.jl 98.68% <94.11%> (-1.32%) ⬇️
GI/src/giexport.jl 87.24% <95.45%> (ø)
GI/src/giimport.jl 82.97% <100.00%> (+0.02%) ⬆️
src/base.jl 81.94% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

The sporadic segfaults that have been happening lately appear to involve dialogs being finalized after their parent window. Add a sleep to try to make sure they are destroyed first.
… window prevents the crash for me locally. This does not solve the underlying issue, which seems like some reference counting bug, since it seems like GtkDialog should hold a reference to the window that would prevent it from being destroyed too early. Are we unreferencing it too many times?
@jwahlstrand jwahlstrand merged commit 3dd0f52 into main Sep 9, 2023
11 checks passed
@jwahlstrand jwahlstrand deleted the jw/update branch September 21, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants