Toolbar with menu items

This code snippet shows how to create a menu item in an elementary toolbar widget.