add newTabTab.patch
[nedit-bw.git] / customize_shell_macro_menu_entries.patch
blobcc14a5e170c81f39e1c1c2f59b759c525196bfbc
1 Subject: 'customize menu' entries in in the shell and macro menu
3 ---
5 source/menu.c | 10 ++++++++++
6 1 file changed, 10 insertions(+)
8 diff --quilt old/source/menu.c new/source/menu.c
9 --- old/source/menu.c
10 +++ new/source/menu.c
11 @@ -1209,6 +1209,11 @@ Widget CreateMenuBar(Widget parent, Wind
13 menuPane = window->shellMenuPane =
14 createMenu(menuBar, "shellMenu", "Shell", 0, &cascade, FULL);
15 + btn = createMenuItem(menuPane, "shellMenuCustomize", "Customize Shell Menu...", 'S',
16 + shellDefCB, window, FULL);
17 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
18 + btn = createMenuSeparator(menuPane, "sep0", SHORT);
19 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
20 btn = createMenuItem(menuPane, "executeCommand", "Execute Command...",
21 'E', doActionCB, "execute_command_dialog", SHORT);
22 XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
23 @@ -1233,6 +1238,11 @@ Widget CreateMenuBar(Widget parent, Wind
25 menuPane = window->macroMenuPane =
26 createMenu(menuBar, "macroMenu", "Macro", 0, &cascade, FULL);
27 + btn = createMenuItem(menuPane, "macroMenuCustomize", "Customize Macro Menu...", 'M',
28 + macroDefCB, window, FULL);
29 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
30 + btn = createMenuSeparator(menuPane, "sep0", SHORT);
31 + XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
32 window->learnItem = createMenuItem(menuPane, "learnKeystrokes",
33 "Learn Keystrokes", 'L', learnCB, window, SHORT);
34 XtVaSetValues(window->learnItem , XmNuserData, PERMANENT_MENU_ITEM, NULL);