re-fresh
[nedit-bw.git] / customize_shell_macro_menu_entries.patch
blobd988292cbf76bd3b2d3a5dd4fa6be66b4ae69014
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 @@ -1210,6 +1210,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 @@ -1234,6 +1239,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);