Added support for view-generated menubar-elements.