gtk4-rs
gtk4-rs copied to clipboard
Investigate nullability of GskTransform
Seems like a bunch of GskTransform methods returns a nullable but are not annotated as such...
cc @alatiera
Should happen before the release ideally as this will change the API.
i don't believe that will happen. At worst it can be pushed to a 0.5 release later on
I can take a look after I finished my tea. It's just 5 or so functions we're talking about here.
The commit is simply wrong. None of the functions that are returning an Option now can return NULL. I'll send a PR.
See https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4378
They can actually return NULL and we'll have to handle all this a bit differently here by treating NULL not as None but as an identity transform.