Elementary menu widget

This code snippets show how to create a menu widget, populate it with items and set the proper callbacks.