Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix broken "save figure" with GTK4 on mac #26558

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevezhang1999
Copy link
Contributor

@stevezhang1999 stevezhang1999 commented Aug 21, 2023

PR summary

In short, the current GTK 4 works on Ubuntu 22.04 but fails on Mac. After this patch, GTK 4 only works on the latest Ubuntu (23.04) but issues on Mac are fixed. Want to know how we want to proceed - keeping the broken app on Mac or moving to Ubuntu 23.04.

This PR tries to fix GTK4 GUI on Mac by using newer version of GTK4 APIs - FileDialog instead of FileChooserNative which is deprecated. The fixed version works well on Mac. Unfortunately, it doesn't work on my Ubuntu 22.04. I got response from the Genome team that this newer version of GTK4 is not supported on Ubuntu 22.04, however, it's available on Ubuntu 23.04.

PR checklist

@QuLogic
Copy link
Member

QuLogic commented Aug 22, 2023

This will have to use the new API only if available (GTK 4.10+) and the old API otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot save figure with GTK4 on Mac
2 participants