gtk-rs / examples

DEPRECATED, use https://github.com/gtk-rs/gtk-rs repository instead!
MIT License
284 stars 75 forks source link

MenuBar and Toolbar with Glade and Actions #316

Open john01dav opened 4 years ago

john01dav commented 4 years ago

I've been trying to figure out how to use a MenuBar and ToolBar with Glade and SimpleAction for days now, to no avail. No matter what I do, any menu item or toolbar button is disabled the instant that I set "Action Name" to anything other than an empty string in Glade. I suspect that there's some completely undocumented subtle detail that is known only in the minds of whoever wrote this, but I have absolutely no idea what this is as I've tried everything that I can think of. As such, I'm requesting an example (or other documentation) of how to do this. A porting of the menu_bar_system example to Glade would be an excellent choice. Let me know if you need an MCVE of this bug/lapse in documentation to demonstrate what is unclear to me.