aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-08-01 22:25:36 +0000
committerRichard M. Stallman <[email protected]>1996-08-01 22:25:36 +0000
commit42de618f8f4c2908a710b059f582e5808cd046b2 (patch)
tree9971141caa981c40d74e2c4751d6c79280078549
parent740e13b3ffaa64607bbcd54571e4866167dbbb8a (diff)
(make_menubar): Turn off menu accelerator.
-rw-r--r--lwlib/lwlib-Xm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 7909bac739..c5da97f85e 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -1267,11 +1267,19 @@ xm_create_dialog (instance)
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