]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_one_menu_entry): Add conditional in case XmNpositionIndex is missing.
authorRichard M. Stallman <rms@gnu.org>
Sat, 20 Dec 1997 23:12:09 +0000 (23:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 20 Dec 1997 23:12:09 +0000 (23:12 +0000)
lwlib/lwlib-Xm.c

index 2050c2957550e1ed9ef3d894f34f18798f19f5ea..7bfa1f04ccb3145d3b2f2d8b6197e91b9d24c3bf 100644 (file)
@@ -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);