This class can be used to generate menu bars from a XML definition for PHP-GTK 2 applications. It can use customized icons, support tear off menus, separator and sub-menus. The menu XML definition can be read from a file or a string.