Attached is a trivial patch that adds the accessors that Jared needs.
Jared, with this patch applied, you should do:
1) get the app (XAP_App::getApp())
2) get the set of actions (XAP_App::getMenuActionSet())
3) get all the frames (XAP_App::getFrameCount(),
XAP_App::getFrame(UT_uint32 ndx))
4) get the EV_Menu that is in each frame (XAP_Frame::getMainMenu())
5) get the layout and label's set out of EV_Menu
(EV_Menu::getMenuLayout() && EV_Menu::getMenuLabelSet())
6) add your menu entry.
I'm pretty much sure that the platform specific code that handles new
items it's broken, but with a bit of luck you should be able to see your
new item without getting a segfault.
Enjoy!
P.S.: If you run in problems or need something else related, just ask
--
Joaqu�n Cuenca Abela
[EMAIL PROTECTED]
dynamic-menu.patch.gz