MenuModel in Rust[GTK4]

I am attempting to add some MenuItems to my MenuModel in my GTK4 rust application. However, all of the options are disabled and I am unable to activate them. Is there any information maybe I’m missing in a tutorial or something for the rust bindings?

image

The items needs a gio::Action associated to them; have you crated those and added them to your gtk::Application or gtk::ApplicationWindow?

Hello ,

You can check this tutorial to help you with it:

https://gtk-rs.org/gtk4-rs/stable/latest/book/actions.html?highlight=Act#menus