bodil/vgtk

Can't set name on Button

archseer opened this issue · 2 comments

error[E0599]: no method named `get_name` found for type `&gtk::auto::button::Button` in the current scope
  --> src/main.rs:68:33
   |
68 |                         <Button name="aid" label="inc!" image="add" always_show_image=true
   |                                 ^^^^ method not found in `&gtk::auto::button::Button`
   |
   = note: the method `get_name` exists but the following trait bounds were not satisfied:
           `&gtk::auto::button::Button : gtk::auto::text_mark::TextMarkExt`
           `gtk::auto::button::Button : gtk::auto::text_mark::TextMarkExt`

It doesn't seem to pick up the one on WidgetExt.

Turns out name is now widget_name and the online docs are out of date. Should have checked the local docs.

bodil commented

Yes, sorry about that, I've had to depend on the git version of gtk-rs recently to get proper async support. I hope they'll cut a new release soon.