- XmNfontList, fontList,
- XmNlabelString, text(),
- XmNframeChildType, XmFRAME_TITLE_CHILD,
- XmNchildVerticalAlignment, XmALIGNMENT_CENTER,
- NULL);
+ wxFont::GetFontTag(), fontType,
+ XmNlabelString, text(),
+// XmNframeChildType is not in Motif 1.2, nor in Lesstif,
+// if it was compiled with 1.2 compatibility
+// TODO: check this still looks OK for Motif 1.2.
+#if (XmVersion > 1200)
+ XmNframeChildType, XmFRAME_TITLE_CHILD,
+#else
+ XmNchildType, XmFRAME_TITLE_CHILD,
+#endif
+ XmNchildVerticalAlignment,
+ XmALIGNMENT_CENTER,
+ NULL);