Add :set_menu function to all widgets