]> granicus.if.org Git - nethack/commitdiff
X11: Attach translations also to menuform
authorPasi Kallinen <paxed@alt.org>
Thu, 28 Jan 2016 17:44:29 +0000 (19:44 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 28 Jan 2016 17:44:33 +0000 (19:44 +0200)
Without this, the keyboard commands don't work in the extended
command window on Linux. If the translations are removed from
menuformview, then the keyboard commands don't work on Mac.

Having the translations in both doesn't seem to hurt.

win/X11/winmisc.c

index b453e9126305fb00adb139ebebcbacaad6bc840b..d1d44d906a294dca1b8895b202db025c331b4656 100644 (file)
@@ -953,6 +953,8 @@ Widget *formp; /* return */
                                  args, num_args);
 
     num_args = 0;
+    XtSetArg(args[num_args], XtNtranslations,
+             XtParseTranslationTable(popup_translations)); num_args++;
     *formp = form = XtCreateManagedWidget("menuform", formWidgetClass, view,
                                           args, num_args);