diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-08-01 22:25:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-08-01 22:25:36 +0000 |
commit | cebf9e36239ff25dbdc19cf73f226da0a74e81e9 (patch) | |
tree | 0e83fed41316717214eec5043239a9709bd5f262 /lwlib | |
parent | efe6de1f3a0653bfce83051cd44601eb213a1295 (diff) | |
download | emacs-cebf9e36239ff25dbdc19cf73f226da0a74e81e9.tar.gz |
(make_menubar): Turn off menu accelerator.
Diffstat (limited to 'lwlib')
-rw-r--r-- | lwlib/lwlib-Xm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 7909bac7392..c5da97f85ed 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 |