Closed bilelmoussaoui closed 3 years ago
I can look into this as part of https://github.com/gtk-rs/gir/pull/1092 which I resumed today. Hopefully, I should to be able to push something before the weekend.
Actually, the callback parameter is marked nullable = "1"
in Gtk-4.0.gir
. See line 10 305.
As discussed on IRC, this can be closed.
Thanks for checking this one @fengalin
If you take a Callback defined as such
Any function that takes that callback as input param, it will have a
Option<Box<F>>
even if the param isn't marked as nullable in the introspection data. see https://github.com/gtk-rs/gtk4-rs/pull/268#discussion_r607078820 for details