I have the menu setup just fine, and it emits win.copy, win.cut, etc. actions, and I have action handlers that they invoke properly, but I’m not sure how to map these to the proper built-in actions in such a way that it works for whatever widget(s) is focused . (For example, in FF, if I highlight any text on this page, and choose “Copy” from the window’s top-level “Edit” menu, the selected text is copied to the clipboard.)
This tutorial comes close: Gtk4-tutorial/sec17.md at 20b4a16175ae3f510151702c8a377b63547b13d8 · ToshioCP/Gtk4-tutorial · GitHub but the handlers are just stubs: Gtk4-tutorial/menu3.c at 20b4a16175ae3f510151702c8a377b63547b13d8 · ToshioCP/Gtk4-tutorial · GitHub
Is there an example or tutorial you can point me towards?