summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-Xm.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-12-20 23:12:09 +0000
committerRichard M. Stallman <rms@gnu.org>1997-12-20 23:12:09 +0000
commitbafa64ca7840dd4044fa1ac6615d2a274a45430b (patch)
treee6cb7264c65df5bf4b99cc4948e0d75cfb702eeb /lwlib/lwlib-Xm.c
parentccd2f9976a0dcdc12fb60f4dc8868ff53790b46f (diff)
downloademacs-bafa64ca7840dd4044fa1ac6615d2a274a45430b.tar.gz
(update_one_menu_entry): Add conditional in case XmNpositionIndex is missing.
Diffstat (limited to 'lwlib/lwlib-Xm.c')
-rw-r--r--lwlib/lwlib-Xm.c4
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)
/* Non-zero values don't work reliably in
conjunction with Emacs' event loop */
XtSetArg (al [ac], XmNmappingDelay, 0); ac++;
+#ifdef XmNpositionIndex /* This is undefined on SCO ODT 2.0. */
/* Tell Motif to put it in the right place */
- XtSetArg (al [ac], XmNpositionIndex, i); ac++;
+ XtSetArg (al [ac], XmNpositionIndex , i); ac++;
+#endif
button = XmCreateCascadeButtonGadget (parent, val->name, al, ac);
xm_update_label (instance, button, val);