开发者

How do I support user-configurable shortcuts in GTK+ menus?

开发者 https://www.devze.com 2023-04-05 06:39 出处:网络
Using GtkUIManager, it\'s easy to specify accelerators for GtkActions. However, some users inevitably want different accelerators, or want accelerators for actions that I don\'t think see enough usage

Using GtkUIManager, it's easy to specify accelerators for GtkActions. However, some users inevitably want different accelerators, or want accelerators for actions that I don't think see enough usage to warrant them.

GtkAccelMap开发者_运维技巧 looks like what I need, but the documentation suggests that it's more low-level than required, and that GtkUIManager should be used. It looks like I could support a fixed-location .ui file containing only <accelerator> entries, but this isn't explicitly suggested anywhere I can find, and I don't know of other applications that do this.

What is the suggested/approved way to support user customisation of accelerators for menu actions?

0

精彩评论

暂无评论...
验证码 换一张
取 消