1 Subject: 'customize menu' entries in in the shell and macro menu
5 source/menu.c | 10 ++++++++++
6 1 file changed, 10 insertions(+)
8 diff --quilt old/source/menu.c new/source/menu.c
11 @@ -1207,10 +1207,15 @@ Widget CreateMenuBar(Widget parent, Wind
13 ** Create the Shell menu
15 menuPane = window->shellMenuPane =
16 createMenu(menuBar, "shellMenu", "Shell", 0, &cascade, FULL);
17 + btn = createMenuItem(menuPane, "shellMenuCustomize", "Customize Shell Menu...", 'S',
18 + shellDefCB, window, FULL);
19 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
20 + btn = createMenuSeparator(menuPane, "sep0", SHORT);
21 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
22 btn = createMenuItem(menuPane, "executeCommand", "Execute Command...",
23 'E', doActionCB, "execute_command_dialog", SHORT);
24 XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
25 btn = createMenuItem(menuPane, "executeCommandLine", "Execute Command Line",
26 'x', doActionCB, "execute_command_line", SHORT);
27 @@ -1231,10 +1236,15 @@ Widget CreateMenuBar(Widget parent, Wind
29 ** Create the Macro menu
31 menuPane = window->macroMenuPane =
32 createMenu(menuBar, "macroMenu", "Macro", 0, &cascade, FULL);
33 + btn = createMenuItem(menuPane, "macroMenuCustomize", "Customize Macro Menu...", 'M',
34 + macroDefCB, window, FULL);
35 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
36 + btn = createMenuSeparator(menuPane, "sep0", SHORT);
37 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
38 window->learnItem = createMenuItem(menuPane, "learnKeystrokes",
39 "Learn Keystrokes", 'L', learnCB, window, SHORT);
40 XtVaSetValues(window->learnItem , XmNuserData, PERMANENT_MENU_ITEM, NULL);
41 window->finishLearnItem = createMenuItem(menuPane, "finishLearn",
42 "Finish Learn", 'F', finishLearnCB, window, SHORT);