changeset 15816:e1e9df8a862e

(make_menubar): Turn off menu accelerator.
author Richard M. Stallman <rms@gnu.org>
date Thu, 01 Aug 1996 22:25:36 +0000
parents 65dd474f666e
children 9e94b5fdaab1
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Thu Aug 01 22:25:11 1996 +0000
+++ b/lwlib/lwlib-Xm.c	Thu Aug 01 22:25:36 1996 +0000
@@ -1267,11 +1267,19 @@
   return widget;
 }
 
+/* Create a menu bar.  We turn off the f10 key
+   because we have not yet managed to make it work right in Motif.  */
+
 static Widget
 make_menubar (instance)
      widget_instance* instance;
 {
-  return XmCreateMenuBar (instance->parent, instance->info->name, NULL, 0);
+  Arg al[1];
+  int ac;
+
+  ac = 0;
+  XtSetArg(al[0], XmNmenuAccelerator, 0);
+  return XmCreateMenuBar (instance->parent, instance->info->name, al, 1);
 }
 
 static void