-
-
Notifications
You must be signed in to change notification settings - Fork 216
Replace deprecated Gtk.FileChooser by FileDialog #2320
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
Conversation
I wonder if we could use the flatpak environment to run the test suite 🤔 |
It would still be good to build it on a normal machine. We could use a Fedor container, but that would pose other challenges. |
2cacdea
to
de29311
Compare
64a91bc
to
e995c2f
Compare
Hi @amolenaar, I went to Save As, then clicked Cancel and got the following traceback:
|
@danyeaw Fixed the issue with the cancel button. |
Instead of FileChooserNative.
for more information, see https://pre-commit.ci
0bd6cea
to
58c7a00
Compare
@amolenaar Do you know why these tests are failing? |
58c7a00
to
c864516
Compare
Sorry, I should've run them before I committed 😨 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @amolenaar, this is a great upgrade!
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #2231
What is the new behavior?
Use the modern
FileDialog
API.Does this PR introduce a breaking change?
Other information
Not sure if it's still using the native dialogs on Windows and macOS.
Gtk.FileDialog
is introduced in GTK 4.10.We're still building on 4.6 (Ubuntu 22.04).I think we can wait until we have GTK 4.10+ available on our build machines.