diff options
| author | Richard M. Stallman | 1996-08-01 22:25:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-08-01 22:25:36 +0000 |
| commit | 42de618f8f4c2908a710b059f582e5808cd046b2 (patch) | |
| tree | 9971141caa981c40d74e2c4751d6c79280078549 | |
| parent | 740e13b3ffaa64607bbcd54571e4866167dbbb8a (diff) | |
| download | emacs-42de618f8f4c2908a710b059f582e5808cd046b2.tar.gz emacs-42de618f8f4c2908a710b059f582e5808cd046b2.zip | |
(make_menubar): Turn off menu accelerator.
| -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) | |||
| 1267 | return widget; | 1267 | return widget; |
| 1268 | } | 1268 | } |
| 1269 | 1269 | ||
| 1270 | /* Create a menu bar. We turn off the f10 key | ||
| 1271 | because we have not yet managed to make it work right in Motif. */ | ||
| 1272 | |||
| 1270 | static Widget | 1273 | static Widget |
| 1271 | make_menubar (instance) | 1274 | make_menubar (instance) |
| 1272 | widget_instance* instance; | 1275 | widget_instance* instance; |
| 1273 | { | 1276 | { |
| 1274 | return XmCreateMenuBar (instance->parent, instance->info->name, NULL, 0); | 1277 | Arg al[1]; |
| 1278 | int ac; | ||
| 1279 | |||
| 1280 | ac = 0; | ||
| 1281 | XtSetArg(al[0], XmNmenuAccelerator, 0); | ||
| 1282 | return XmCreateMenuBar (instance->parent, instance->info->name, al, 1); | ||
| 1275 | } | 1283 | } |
| 1276 | 1284 | ||
| 1277 | static void | 1285 | static void |