[comp.windows.x] Building Xrn on X11R4

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (01/11/90)

Okay xrn fans, I have poked around and gotten xrn to build and run
cleanly with X11R4.  There were two small bugs in the Text widget
compatability routines that were causing the xrn to choke and display
the wrong information.  The rest of this message contains two context
diffs that need to be patched into your sources to get xrn to work correctly.

NOTE:	These are not offical patches.  If you choose to apply them to your
	sources, do so at your own risk.


						Happy news reading,

						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213


------------------------------------------------------------
Patch #1: 	Apply to ``contrib/clients/xrn/xrn.c''
------------------------------------------------------------

*** /tmp/,RCSt1a18329	Wed Jan 10 14:24:21 1990
--- xrn.c	Wed Jan 10 14:24:03 1990
***************
*** 107,112 ****
--- 107,114 ----
  	{XtNmin, (XtArgVal) 100},
  	{XtNmax, (XtArgVal) 800},
  	{XtNskipAdjust, (XtArgVal) False},
+         {XtNtype, (XtArgVal) XawAsciiString},
+         {XtNuseStringInPlace, (XtArgVal) True},
      };
  
      XRNState = 0;
***************
*** 176,182 ****
  
      /* article display text window */
      XtSetArg(articleTextArgs[4], XtNmax, frameArgs[3].value);
!     ArticleText = XtCreateManagedWidget("text", asciiStringWidgetClass, frame,
  					 articleTextArgs, XtNumber(articleTextArgs));
      
      BottomInfoLine = XtCreateManagedWidget("textinfo", labelWidgetClass, frame,
--- 178,184 ----
  
      /* article display text window */
      XtSetArg(articleTextArgs[4], XtNmax, frameArgs[3].value);
!     ArticleText = XtCreateManagedWidget("text", asciiTextWidgetClass, frame,
  					 articleTextArgs, XtNumber(articleTextArgs));
      
      BottomInfoLine = XtCreateManagedWidget("textinfo", labelWidgetClass, frame,


------------------------------------------------------------
Patch #2: 	Apply to ``lib/Xaw/AsciiSrc.c''
------------------------------------------------------------


*** /tmp/,RCSt1a18422	Wed Jan 10 14:26:17 1990
--- AsciiSrc.c	Wed Jan 10 14:25:58 1990
***************
*** 1299,1312 ****
    register int i;
  
    XtSetArg(temp[0], XtNtype, XawAsciiFile);
-   ascii_args = XtMergeArgLists(temp, ONE, args, num_args);
  
    for (i = 0; i < num_args; i++) 
      if (streq(args[i].name, XtNfile) || streq(args[i].name, XtCFile)) 
        args[i].name = XtNstring;
  
    src = XtCreateWidget("genericAsciiDisk", asciiSrcObjectClass, parent,
! 		       ascii_args, num_args + TWO);
    XtFree(ascii_args);
    return(src);
  }
--- 1299,1312 ----
    register int i;
  
    XtSetArg(temp[0], XtNtype, XawAsciiFile);
  
    for (i = 0; i < num_args; i++) 
      if (streq(args[i].name, XtNfile) || streq(args[i].name, XtCFile)) 
        args[i].name = XtNstring;
  
+   ascii_args = XtMergeArgLists(temp, ONE, args, num_args);
    src = XtCreateWidget("genericAsciiDisk", asciiSrcObjectClass, parent,
! 		       ascii_args, num_args + ONE);
    XtFree(ascii_args);
    return(src);
  }