gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!

Home Page:https://gtk-rs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sophie-h opened this issue · comments

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

I think the same applies for

  • Label::get_text()
  • Label::get_label()

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

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