bodil / vgtk

A declarative desktop UI framework for Rust built on GTK and Gtk-rs
http://bodil.lol/vgtk/
Other
1.06k stars 36 forks source link

Can't set name on Button #23

Closed archseer closed 4 years ago

archseer commented 4 years ago
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.

archseer commented 4 years ago

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

bodil commented 4 years ago

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.