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

gdk: trust nullability annotations #786

Merged
merged 11 commits into from
Jan 1, 2022

Conversation

bilelmoussaoui
Copy link
Member

Those were the ones that i noticed and needs fixes upstream

  • gdk_content_deserializer_get_cancellable: needs a nullable annotation
  • gdk_content_serializer_get_cancellable: needs a nullable annotation
  • gdk_event_get_surface: needs a nullable annotation
  • gdk_popup_get_parent: needs a nullable annotation

until we send a PR upstream
The texture::*_bytes functions are not nullable compared
to the ones that download to a file, because the file might
not be writeable for example
gdk4/Gir.toml Show resolved Hide resolved
@sdroege
Copy link
Member

sdroege commented Jan 1, 2022

Looks generally correct otherwise

@bilelmoussaoui bilelmoussaoui linked an issue Jan 1, 2022 that may be closed by this pull request
5 tasks
@bilelmoussaoui
Copy link
Member Author

Okay, I have dropped all the trust_return_value_nullability = false, regenerated type by type; checked the corresponding C function and updated https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4310 with whatever fixes that are needed.

Once that merge request is merged, we can merge this one & drop the manual annotations here once we get a new gir file.

@bilelmoussaoui bilelmoussaoui force-pushed the bilelmoussaoui/trust-nullability branch from 64b430b to 4183fd4 Compare January 1, 2022 19:01
@bilelmoussaoui
Copy link
Member Author

The merge request got merged, I went ahead and done something similar for the constructors as well https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4315. This should be ready to be merged.

@bilelmoussaoui bilelmoussaoui merged commit 508f57a into master Jan 1, 2022
@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui/trust-nullability branch January 1, 2022 21:15
@bilelmoussaoui bilelmoussaoui restored the bilelmoussaoui/trust-nullability branch January 1, 2022 21:15
@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui/trust-nullability branch January 1, 2022 21:15
@bilelmoussaoui bilelmoussaoui restored the bilelmoussaoui/trust-nullability branch January 1, 2022 21:15
@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui/trust-nullability branch January 1, 2022 21:15
BrainBlasted added a commit to BrainBlasted/ashpd that referenced this pull request Jan 1, 2022
bilelmoussaoui pushed a commit to bilelmoussaoui/ashpd that referenced this pull request Jan 1, 2022
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.

trust_return_value_nullability
2 participants