gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
https://gtk-rs.org/
MIT License
1.24k stars 82 forks source link

gtk::Entry::get_text should not return an Option #997

Closed sophie-h closed 4 years ago

sophie-h commented 4 years ago

Possible workaround is to call .get_buffer().get_text() to get no Option.

I think the same applies for

sdroege commented 4 years ago

Indeed, do you want to submit a PR for this? It requires marking the return type as nullable = false in the Gir.toml.

GuillaumeGomez commented 4 years ago

And to run make gir afterwards to update the code automatically.