Gtk + menu hiding prohibits all keyboard shortcuts

I want to hide a line in a gtk + text editor. Thought it would be a simple gtk_widget_hide(menubar) question, but when I do this, I will lose all the keyboard shortcuts. How do you hide the menu bar and keep the accelerator functionality?

+6
source share
1 answer

Hidden widgets do not respond to afaik key events.

A possible solution is to install AcceleratorGroup for your entire application.

You can also hide all menu bar items (unverified).

+1
source

Source: https://habr.com/ru/post/918290/


All Articles