Custom accelerators in PopoverMenu

Hi there,

in my application, I use a PopoverMenu for the context menu:

For various reasons, such as allowing chorded keyboard shortcuts, I’ve rolled my own shortcut handling and I’m not using the one Gtk provides.

How do I get my own shortcuts into the menu? set_accels_for_action is out for me since it requires using Gtk’s accelerator handling.

In Gtk3 I could just pack another dim label into the GtkMenu and it looked pretty much just like the one Gtk puts in there.

Best Regards,


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.