Menus and Toolbars
There are specific APIs for Menus and toolbars, but you should usually deal with them together, using the UIManager to define Actions which you can then arrange in menus and toolbars. In this way you can handle activation of the action instead of responding to the menu and toolbar items separately. And you can enable or disable both the menu and toolbar item via the action.
This involves the use of the Gtk::ActionGroup, Gtk::Action, and UIManager classes, all of which should be instantiated via their create() methods, which return RefPtrs.
- 12.1. Actions
- 12.2. UIManager
- 12.3. Popup Menus
- 12.4. Examples