Menus et barres d'outils

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.

Cette façon d'opérer implique l'utilisation des classes Gtk::ActionGroup, Gtk::Action et UIManager ; chacune d'entre elles sera instanciée avec la fonction membre create() qui renverra un pointeur RefPtr.