-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
GtkLabel/GktEntry nullability checks #30
Comments
See also gtk-rs/gir#970 |
Also there were various PRs to gtk3 to fix those. Before starting to work on this you probably want to go through the gtk3 PRs and sync whatever still makes sense :) |
I'm planning to bring gtk4 into the state that we can 'trust' the upstream nullable annotations. (Very first fixes are merged.) However, the current version of this repo is not build with the gir version that supports trusting the nullable annotations. Can someone maybe check the code after updating the git submodules? |
Updating gir here should be fine and not cause any problems |
@bilelmoussaoui GtkEntry::get_text() seems to be gone? But entry.get_buffer().get_text() should work without Options. Will add a first PR after #31 is merged. |
My bad, I should have checked the API before creating the issue. But you have got the idea, it's mostly to ensure we are okay null-ability checks wise. |
That probably should wait until the gir-files are updated to GTK 3.99.3 or even newer as there are quite a few nullability fixes since the version we currently have. |
I will try to get #34 ready as soon as possible so we can update the bindings & move things forward |
My gtk4 fixes are all post 3.99.3. So, newer would be good. Afterwards I will mark for every object if it needs upstream fixing, has a committed upstream fix or add |
@sophie-h the bindings were update to 3.99.3, feel free to submit your patches now 👍 |
First fixes are in. I guess that's #68 now? |
Yeah let's continue discussions there |
Some functions can't return a nullable like GtkEntry::get_text(), we should check those and fix the Gir.toml accordingly.
The text was updated successfully, but these errors were encountered: