gtk-rs/gtk

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

sophie-h opened this issue · 2 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.