diff options
| author | Richard M. Stallman | 1997-12-20 23:12:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-12-20 23:12:09 +0000 |
| commit | bafa64ca7840dd4044fa1ac6615d2a274a45430b (patch) | |
| tree | e6cb7264c65df5bf4b99cc4948e0d75cfb702eeb | |
| parent | ccd2f9976a0dcdc12fb60f4dc8868ff53790b46f (diff) | |
| download | emacs-bafa64ca7840dd4044fa1ac6615d2a274a45430b.tar.gz emacs-bafa64ca7840dd4044fa1ac6615d2a274a45430b.zip | |
(update_one_menu_entry): Add conditional in case XmNpositionIndex is missing.
| -rw-r--r-- | lwlib/lwlib-Xm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 2050c295755..7bfa1f04ccb 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c | |||
| @@ -544,8 +544,10 @@ update_one_menu_entry (instance, widget, val, deep_p) | |||
| 544 | /* Non-zero values don't work reliably in | 544 | /* Non-zero values don't work reliably in |
| 545 | conjunction with Emacs' event loop */ | 545 | conjunction with Emacs' event loop */ |
| 546 | XtSetArg (al [ac], XmNmappingDelay, 0); ac++; | 546 | XtSetArg (al [ac], XmNmappingDelay, 0); ac++; |
| 547 | #ifdef XmNpositionIndex /* This is undefined on SCO ODT 2.0. */ | ||
| 547 | /* Tell Motif to put it in the right place */ | 548 | /* Tell Motif to put it in the right place */ |
| 548 | XtSetArg (al [ac], XmNpositionIndex, i); ac++; | 549 | XtSetArg (al [ac], XmNpositionIndex , i); ac++; |
| 550 | #endif | ||
| 549 | button = XmCreateCascadeButtonGadget (parent, val->name, al, ac); | 551 | button = XmCreateCascadeButtonGadget (parent, val->name, al, ac); |
| 550 | xm_update_label (instance, button, val); | 552 | xm_update_label (instance, button, val); |
| 551 | 553 | ||