Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!shambhala.Berkeley.EDU!ricks From: ricks@shambhala.Berkeley.EDU (Rick L Spickelmier) Newsgroups: comp.windows.x Subject: Re: Working xrn for X11R3 Keywords: bugs, athena widgets Message-ID: <10776@pasteur.Berkeley.EDU> Date: 8 Mar 89 02:00:50 GMT References: <6883@phoenix.Princeton.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: xrn@eros.berkeley.edu Lines: 72 There are bugs in the Athena Widgets that must be patched for XRN to run under X11R3. Here are the necessary patches: *** /net/eros/source/X/X.V11R3/lib/Xaw/Text.c Fri Oct 28 11:20:01 1988 --- Text.c Wed Nov 30 14:05:28 1988 *************** *** 1939,1944 { TextWidget ctx = (TextWidget) w; ctx->text.lastPos = (*ctx->text.source->GetLastPos)(ctx->text.source); _XtTextPrepareToUpdate(ctx); _XtTextNeedsUpdating(ctx, from, to); --- 1939,1945 ----- { TextWidget ctx = (TextWidget) w; + #ifdef BUG ctx->text.lastPos = (*ctx->text.source->GetLastPos)(ctx->text.source); #else ctx->text.lastPos = GETLASTPOS; *************** *** 1940,1945 TextWidget ctx = (TextWidget) w; ctx->text.lastPos = (*ctx->text.source->GetLastPos)(ctx->text.source); _XtTextPrepareToUpdate(ctx); _XtTextNeedsUpdating(ctx, from, to); ForceBuildLineTable(ctx); --- 1941,1949 ----- #ifdef BUG ctx->text.lastPos = (*ctx->text.source->GetLastPos)(ctx->text.source); + #else + ctx->text.lastPos = GETLASTPOS; + #endif _XtTextPrepareToUpdate(ctx); _XtTextNeedsUpdating(ctx, from, to); ForceBuildLineTable(ctx); *** /net/eros/source/X/X.V11R3/lib/Xaw/DiskSrc.c Tue Oct 18 09:29:58 1988 --- DiskSrc.c Wed Nov 30 14:05:49 1988 *************** *** 422,427 DiskSourcePtr data; data = (DiskSourcePtr) src->data; XtFree((char *) data->buffer); if (data->is_tempfile) { unlink(data->fileName); XtFree((char *) data->fileName); --- 422,428 ----- DiskSourcePtr data; data = (DiskSourcePtr) src->data; XtFree((char *) data->buffer); + (void) fclose(data->file); if (data->is_tempfile) { unlink(data->fileName); XtFree((char *) data->fileName); Rick Spickelmier Ellen Sentovich P.S. There is a new version of XRN on shambhala.berkeley.edu (128.32.132.54) in ~ftp/pub/xrn11.6March1989.tar.Z