gtk-rs / gir

Tool to generate rust bindings and user API for glib-based libraries
https://gtk-rs.org/gir/book/
MIT License
230 stars 102 forks source link

Add a nullable_return_panic #1308

Open bilelmoussaoui opened 2 years ago

bilelmoussaoui commented 2 years ago

Add a new option for nullable functions to panic with the message set in nullable_return_panic

sdroege commented 2 years ago

Examples are gtk_event_controller_get_widget() and gtk_stack_get_page() (see https://github.com/gtk-rs/gtk4-rs/issues/826)

hohilwik commented 2 years ago

Hi, would like to take this up. Asked about this on the element channel and know what to do now