Converted the menu build_menu_item() method into a function of gui.components.menu.
This allows it to be used more easily by other parts of the GUI.
Authored by: bugman 2011-07-20
Parent: [r13789]
Child: [r13791]