home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume5 / xdir / patch3 < prev    next >
Encoding:
Internet Message Format  |  1993-04-28  |  16.7 KB

  1. From: kent@ssbell.IMD.Sterling.COM (Kent Landfield)
  2. Newsgroups: comp.sources.x
  3. Subject: v05i069: xdir -- Directory Browser, Patch3
  4. Message-ID: <650@ssbell.IMD.Sterling.COM>
  5. Date: 4 Feb 90 08:50:47 GMT
  6. Approved: kent@ssbell.IMD.Sterling.COM (Kent Landfield)
  7.  
  8. Submitted-by: Erik M. van der Poel <uunet!kddlab!sran8.sra.co.jp!erik>
  9. Posting-number: Volume 5, Issue 69
  10. Archive-name: xdir/patch3
  11. Patch-To: xdir: Volume 4, Issue 14-15,97
  12. Patch-To: xdir: Volume 5, Issue 14
  13.  
  14. This is the third set of patches for the SelFile directory browser
  15. package.
  16.  
  17. These patches are for people with patchlevel 2. People with the R4
  18. version (contrib/clients/selfile) should wait for the next set of
  19. patches, which take the patchlevel from 3 to 4.
  20.  
  21.     * Athena widget include files have moved to <X11/Xaw> in R4.
  22.  
  23.     * R4 Athena widgets use Xaw... instead of Xt...
  24.  
  25.     * The R4 Athena Text widget has a new programmer interface.
  26.  
  27.     * It is still possible to compile in a pre-R4 environment using
  28.       -DSEL_FILE_PRE_R4_XAW_XMU.
  29.  
  30.     * The patchlevel.h file has been updated to patch level three.
  31.  
  32. --
  33. Erik M. van der Poel                  erik@sra.co.jp             (Japan)
  34. SRA, 1-1-1 Hirakawa-cho, Chiyoda-ku   erik%sra.co.jp@uunet.uu.net  (USA)
  35. Tokyo 102 Japan. TEL +81-3-234-2692   erik%sra.co.jp@mcvax.uucp (Europe)
  36.  
  37.  
  38. Prereq: 2
  39. *** ../old/patchlevel.h    Mon Jan 29 13:57:04 1990
  40. --- patchlevel.h    Mon Jan 29 13:58:20 1990
  41. ***************
  42. *** 1 ****
  43. ! #define PATCHLEVEL 2
  44. --- 1 ----
  45. ! #define PATCHLEVEL 3
  46. *** ../old/Draw.c    Mon Jan 29 13:57:08 1990
  47. --- Draw.c    Mon Jan 29 13:58:18 1990
  48. ***************
  49. *** 1,5 ****
  50.   #ifndef lint
  51. ! static char rcsid[] = "$Header: Draw.c,v 1.11 89/09/28 16:32:19 erik Exp $";
  52.   #endif
  53.   
  54.   /*
  55. --- 1,5 ----
  56.   #ifndef lint
  57. ! static char rcsid[] = "$Header: Draw.c,v 1.2 89/12/15 11:59:08 kit Exp $";
  58.   #endif
  59.   
  60.   /*
  61. ***************
  62. *** 34,43 ****
  63. --- 34,51 ----
  64.   #include <X11/StringDefs.h>
  65.   
  66.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR)
  67.   #include <Xw/Xw.h>
  68.   #include <Xw/ScrollBar.h>
  69.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  70. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  71.   #include <X11/Scroll.h>
  72. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  73. + #include <X11/Xaw/Scrollbar.h>
  74. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  75.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  76.   
  77.   #define SF_DEFAULT_FONT "9x15"
  78. ***************
  79. *** 223,229 ****
  80. --- 231,243 ----
  81.           XtSetValues(selFileHScrolls[n], arglist, i);
  82.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  83.           if ((SFdirPtr + n < SFdirEnd) && dir->nEntries && dir->nChars) {
  84. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  85.               XtScrollBarSetThumb(
  86. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  87. +             XawScrollBarSetThumb(
  88. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  89.                   selFileVScrolls[n],
  90.                   (float) (((double) dir->vOrigin) /
  91.                       dir->nEntries),
  92. ***************
  93. *** 231,237 ****
  94. --- 245,257 ----
  95.                       ? dir->nEntries : SFlistSize)) /
  96.                       dir->nEntries)
  97.               );
  98. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  99.               XtScrollBarSetThumb(
  100. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  101. +             XawScrollBarSetThumb(
  102. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  103.                   selFileHScrolls[n],
  104.                   (float) (((double) dir->hOrigin) / dir->nChars),
  105.                   (float) (((double) ((dir->nChars <
  106. ***************
  107. *** 239,248 ****
  108. --- 259,277 ----
  109.                       SFcharsPerEntry)) / dir->nChars)
  110.               );
  111.           } else {
  112. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  113.               XtScrollBarSetThumb(selFileVScrolls[n], (float) 0.0,
  114.                   (float) 1.0);
  115.               XtScrollBarSetThumb(selFileHScrolls[n], (float) 0.0,
  116.                   (float) 1.0);
  117. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  118. +             XawScrollBarSetThumb(selFileVScrolls[n], (float) 0.0,
  119. +                 (float) 1.0);
  120. +             XawScrollBarSetThumb(selFileHScrolls[n], (float) 0.0,
  121. +                 (float) 1.0);
  122. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  123.           }
  124.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  125.   
  126. ***************
  127. *** 310,316 ****
  128. --- 339,350 ----
  129.   
  130.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  131.   
  132. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  133.       XtScrollBarSetThumb(
  134. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  135. +     XawScrollBarSetThumb(
  136. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  137.           selFileVScrolls[n],
  138.           (float) (((double) dir->vOrigin) / dir->nEntries),
  139.           (float) (((double) ((dir->nEntries < SFlistSize) ?
  140. ***************
  141. *** 610,616 ****
  142. --- 644,656 ----
  143.           XtSetValues(selFileVScrolls[n], arglist, i);
  144.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  145.           if (dir->nEntries) {
  146. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  147.               XtScrollBarSetThumb(
  148. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  149. +             XawScrollBarSetThumb(
  150. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  151.               selFileVScrolls[n],
  152.               (float) (((double) dir->vOrigin) / dir->nEntries),
  153.               (float) (((double) ((dir->nEntries < SFlistSize) ?
  154. ***************
  155. *** 904,910 ****
  156. --- 944,956 ----
  157.           float    f;
  158.   
  159.           f = ((double) new) / dir->nEntries;
  160. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  161.           XtScrollBarSetThumb(
  162. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  163. +         XawScrollBarSetThumb(
  164. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  165.               w,
  166.               f,
  167.               (float) (((double) ((dir->nEntries < SFlistSize) ?
  168. ***************
  169. *** 1000,1006 ****
  170. --- 1046,1058 ----
  171.           float    f;
  172.   
  173.           f = ((double) new) / dir->nChars;
  174. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  175.           XtScrollBarSetThumb(
  176. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  177. +         XawScrollBarSetThumb(
  178. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  179.               w,
  180.               f,
  181.               (float) (((double) ((dir->nChars < SFcharsPerEntry) ?
  182. ***************
  183. *** 1029,1037 ****
  184. --- 1081,1097 ----
  185.       int        n;
  186.   
  187.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  188.       XwTextPosition    pos;
  189.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  190. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  191.       XtTextPosition    pos;
  192. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  193. +     XawTextPosition    pos;
  194. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  195.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  196.   
  197.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR)
  198. ***************
  199. *** 1067,1075 ****
  200. --- 1127,1143 ----
  201.       }
  202.   
  203.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  204.       XwTextSetInsertPos(selFileField, pos);
  205.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  206. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  207.       XtTextSetInsertionPoint(selFileField, pos);
  208. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  209. +     XawTextSetInsertionPoint(selFileField, pos);
  210. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  211.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  212.   
  213.   }
  214. ***************
  215. *** 1122,1128 ****
  216. --- 1190,1202 ----
  217.           float    f;
  218.   
  219.           f = ((double) new) / SFdirEnd;
  220. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  221.           XtScrollBarSetThumb(
  222. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  223. +         XawScrollBarSetThumb(
  224. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  225.               w,
  226.               f,
  227.               (float) (((double) ((SFdirEnd < 3) ? SFdirEnd : 3)) /
  228. *** ../old/Imakefile    Mon Jan 29 13:56:48 1990
  229. --- Imakefile    Mon Jan 29 13:58:18 1990
  230. ***************
  231. *** 15,20 ****
  232. --- 15,25 ----
  233.   #
  234.   # -DSEL_FILE_XW
  235.   #
  236. + # By default, the program compiles correctly in the R4 environment, where Xaw
  237. + # header files are under <X11/Xaw/>. To compile in an earlier environment, use:
  238. + #
  239. + # -DSEL_FILE_PRE_R4_XAW_XMU
  240. + #
  241.   # Normally, the program should be linked with the R3 or a later version of the
  242.   # Xt Intrinsics, but it can be linked with the R2 Xt by defining the following:
  243.   #
  244. ***************
  245. *** 32,37 ****
  246. --- 37,43 ----
  247.   #------------------------------------------------------------------------------
  248.   #
  249.   #        DEFINES = -DSEL_FILE_XW
  250. +         DEFINES = CompatibilityFlags
  251.   
  252.              SRCS = xdir.c SelFile.c Dir.c Path.c Draw.c
  253.              OBJS = xdir.o SelFile.o Dir.o Path.o Draw.o
  254. *** ../old/Path.c    Mon Jan 29 13:57:09 1990
  255. --- Path.c    Mon Jan 29 13:58:19 1990
  256. ***************
  257. *** 1,5 ****
  258.   #ifndef lint
  259. ! static char rcsid[] = "$Header: Path.c,v 1.10 89/09/28 16:33:57 erik Exp $";
  260.   #endif
  261.   
  262.   /*
  263. --- 1,5 ----
  264.   #ifndef lint
  265. ! static char rcsid[] = "$Header: Path.c,v 1.2 89/12/15 11:59:24 kit Exp $";
  266.   #endif
  267.   
  268.   /*
  269. ***************
  270. *** 39,48 ****
  271. --- 39,56 ----
  272.   #include <sys/stat.h>
  273.   
  274.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR)
  275.   #include <Xw/Xw.h>
  276.   #include <Xw/ScrollBar.h>
  277.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  278. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  279.   #include <X11/Scroll.h>
  280. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  281. + #include <X11/Xaw/Scrollbar.h>
  282. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  283.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  284.   
  285.   #if defined(SYSV) || defined(USG)
  286. ***************
  287. *** 684,690 ****
  288. --- 692,704 ----
  289.           XtSetArg(arglist[i], XtNsliderOrigin, SFdirPtr);    i++;
  290.           XtSetValues(selFileHScroll, arglist, i);
  291.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  292. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  293.           XtScrollBarSetThumb(
  294. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  295. +         XawScrollBarSetThumb(
  296. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  297.               selFileHScroll,
  298.               (float) (((double) SFdirPtr) / SFdirEnd),
  299.               (float) (((double) ((SFdirEnd < 3) ? SFdirEnd : 3)) /
  300. ***************
  301. *** 738,750 ****
  302. --- 752,775 ----
  303.   
  304.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  305.       {
  306. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  307.           XtTextBlock    text;
  308. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  309. +         XawTextBlock    text;
  310. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  311.   
  312.           text.firstPos = 0;
  313.           text.length = strlen(path);
  314.           text.ptr = path;
  315.           text.format = FMT8BIT;
  316. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  317.           XtTextReplace(selFileField, 0, strlen(SFtextBuffer), &text);
  318. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  319. +         XawTextReplace(selFileField, 0, strlen(SFtextBuffer), &text);
  320. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  321.       }
  322.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  323.   
  324. *** ../old/SFinternal.h    Mon Jan 29 13:56:50 1990
  325. --- SFinternal.h    Mon Jan 29 13:58:19 1990
  326. ***************
  327. *** 1,4 ****
  328. ! /* $Header: SFinternal.h,v 1.6 89/08/30 15:59:46 erik Exp $ */
  329.   
  330.   /*
  331.    * Copyright 1989 Software Research Associates, Inc., Tokyo, Japan
  332. --- 1,4 ----
  333. ! /* $Header: SFinternal.h,v 1.7 89/10/31 18:36:41 erik Exp $ */
  334.   
  335.   /*
  336.    * Copyright 1989 Software Research Associates, Inc., Tokyo, Japan
  337. ***************
  338. *** 30,40 ****
  339. --- 30,49 ----
  340.   #include <X11/Xos.h>
  341.   
  342.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  343.   #include <Xw/Xw.h>
  344.   #include <Xw/TextEdit.h>
  345.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  346. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  347.   #include <X11/Text.h>
  348.   #include <X11/AsciiText.h>
  349. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  350. + #include <X11/Xaw/Text.h>
  351. + #include <X11/Xaw/AsciiText.h>
  352. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  353.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  354.   
  355.   #define SEL_FILE_CANCEL        -1
  356. ***************
  357. *** 94,102 ****
  358. --- 103,119 ----
  359.   extern XSegment SFsegs[], SFcompletionSegs[];
  360.   
  361.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  362.   extern XwTextPosition SFtextPos;
  363.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  364. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  365.   extern XtTextPosition SFtextPos;
  366. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  367. + extern XawTextPosition SFtextPos;
  368. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  369.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  370.   
  371.   extern void
  372. *** ../old/SelFile.c    Mon Jan 29 13:57:06 1990
  373. --- SelFile.c    Mon Jan 29 13:58:19 1990
  374. ***************
  375. *** 1,5 ****
  376.   #ifndef lint
  377. ! static char rcsid[] = "$Header: SelFile.c,v 1.13 89/10/27 15:41:26 erik Exp $";
  378.   #endif
  379.   
  380.   /*
  381. --- 1,5 ----
  382.   #ifndef lint
  383. ! static char rcsid[] = "$Header: SelFile.c,v 1.2 89/12/15 11:59:32 kit Exp $";
  384.   #endif
  385.   
  386.   /*
  387. ***************
  388. *** 54,84 ****
  389. --- 54,116 ----
  390.   #include <X11/Shell.h>
  391.   
  392.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWFORM)
  393.   #include <Xw/Xw.h>
  394.   #include <Xw/Form.h>
  395.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWFORM) */
  396. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  397.   #include <X11/Form.h>
  398. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  399. + #include <X11/Xaw/Form.h>
  400. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  401.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWFORM) */
  402.   
  403.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWPUSHBUTTON)
  404.   #include <Xw/Xw.h>
  405.   #include <Xw/PButton.h>
  406.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWPUSHBUTTON) */
  407. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  408.   #include <X11/Command.h>
  409. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  410. + #include <X11/Xaw/Command.h>
  411. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  412.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWPUSHBUTTON) */
  413.   
  414.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR)
  415.   #include <Xw/Xw.h>
  416.   #include <Xw/ScrollBar.h>
  417.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  418. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  419.   #include <X11/Scroll.h>
  420. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  421. + #include <X11/Xaw/Scrollbar.h>
  422. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  423.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSCROLLBAR) */
  424.   
  425.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWSTATICTEXT)
  426.   #include <Xw/Xw.h>
  427.   #include <Xw/SText.h>
  428.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSTATICTEXT) */
  429. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  430.   #include <X11/Label.h>
  431. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  432. + #include <X11/Xaw/Label.h>
  433. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  434.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWSTATICTEXT) */
  435.   
  436.   #include "SFinternal.h"
  437. ***************
  438. *** 123,131 ****
  439. --- 155,171 ----
  440.   XSegment SFsegs[2], SFcompletionSegs[2];
  441.   
  442.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  443.   XwTextPosition SFtextPos;
  444.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  445. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  446.   XtTextPosition SFtextPos;
  447. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  448. + XawTextPosition SFtextPos;
  449. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  450.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  451.   
  452.   int SFupperX, SFlowerY, SFupperY;
  453. ***************
  454. *** 341,347 ****
  455.       u_char        cstr[256];
  456.   #endif /* def SEL_FILE_JAPANESE */
  457.   
  458. !     Arg        arglist[20];
  459.   
  460.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  461.       SFfieldData    *data;
  462. --- 381,387 ----
  463.       u_char        cstr[256];
  464.   #endif /* def SEL_FILE_JAPANESE */
  465.   
  466. !     Arg        arglist[24];
  467.   
  468.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  469.       SFfieldData    *data;
  470. ***************
  471. *** 488,493 ****
  472. --- 528,535 ----
  473.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  474.       XtSetArg(arglist[i], XtNstring, SFtextBuffer);            i++;
  475.       XtSetArg(arglist[i], XtNlength, MAXPATHLEN);            i++;
  476. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  477.       XtSetArg(arglist[i], XtNeditType, XttextEdit);            i++;
  478.       XtSetArg(arglist[i], XtNtextOptions,    0        |
  479.                           editable    |
  480. ***************
  481. *** 494,501 ****
  482. --- 536,555 ----
  483.                           resizeHeight    |
  484.                           wordBreak    |
  485.                           0);            i++;
  486. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  487. +     XtSetArg(arglist[i], XtNeditType, XawtextEdit);            i++;
  488. +     XtSetArg(arglist[i], XtNwrap, XawtextWrapWord);            i++;
  489. +     XtSetArg(arglist[i], XtNresize, XawtextResizeHeight);        i++;
  490. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  491. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  492.       selFileField = XtCreateManagedWidget("selFileField",
  493.           asciiStringWidgetClass, selFileForm, arglist, i);
  494. + #else
  495. +     selFileField = XtCreateManagedWidget("selFileField",
  496. +         asciiTextWidgetClass, selFileForm, arglist, i);
  497. + #endif
  498.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  499.   
  500.       XtOverrideTranslations(selFileField,
  501. ***************
  502. *** 930,938 ****
  503. --- 984,1000 ----
  504.           (void) strcpy(SFcurrentPath, SFtextBuffer);
  505.   
  506.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  507.           SFtextPos = XwTextGetInsertPos(selFileField);
  508.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  509. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  510.           SFtextPos = XtTextGetInsertionPoint(selFileField);
  511. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  512. +         SFtextPos = XawTextGetInsertionPoint(selFileField);
  513. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  514.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  515.   
  516.       } else {
  517. ***************
  518. *** 939,949 ****
  519. --- 1001,1020 ----
  520.           (void) strcat(strcpy(SFcurrentPath, SFstartDir), SFtextBuffer);
  521.   
  522.   #if defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT)
  523.           SFtextPos = XwTextGetInsertPos(selFileField) +
  524.               strlen(SFstartDir);
  525.   #else /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  526. + #ifdef SEL_FILE_PRE_R4_XAW_XMU
  527.           SFtextPos = XtTextGetInsertionPoint(selFileField) +
  528.               strlen(SFstartDir);
  529. + #else /* def SEL_FILE_PRE_R4_XAW_XMU */
  530. +         SFtextPos = XawTextGetInsertionPoint(selFileField) +
  531. +             strlen(SFstartDir);
  532. + #endif /* def SEL_FILE_PRE_R4_XAW_XMU */
  533.   #endif /* defined(SEL_FILE_XW) || defined(SEL_FILE_XWTEXTEDIT) */
  534.   
  535.       }
  536.  
  537.