push up:
[nedit-bw.git] / fix_background_menu.patch
blobe8d385748ace6b3691ed23335d53f44aa10232b2
1 ---
3 source/menu.c | 6 +++---
4 1 files changed, 3 insertions(+), 3 deletions(-)
6 diff --quilt old/source/menu.c new/source/menu.c
7 --- old/source/menu.c
8 +++ new/source/menu.c
9 @@ -5559,21 +5559,21 @@ static int compareWindowNames(const void
11 ** Create popup for right button programmable menu
13 Widget CreateBGMenu(WindowInfo *window)
15 - Arg args[1];
16 + Arg args[0];
18 /* There is still some mystery here. It's important to get the XmNmenuPost
19 resource set to the correct menu button, or the menu will not post
20 properly, but there's also some danger that it will take over the entire
21 button and interfere with text widget translations which use the button
22 with modifiers. I don't entirely understand why it works properly now
23 when it failed often in development, and certainly ignores the ~ syntax
24 in translation event specifications. */
25 - XtSetArg(args[0], XmNmenuPost, GetPrefBGMenuBtn());
26 - return CreatePopupMenu(window->textArea, "bgMenu", args, 1);
27 + /* XtSetArg(args[0], XmNmenuPost, GetPrefBGMenuBtn()); */
28 + return CreatePopupMenu(window->textArea, "bgMenu", args, 0);
32 ** Create context popup menu for tabs & tab bar