ricks@shambhala.Berkeley.EDU (Rick L Spickelmier) (11/24/88)
I have been trying to use XtTextInvalidate. Whenever I use it I
end up back in main (i.e. call a null function pointer). I took
a look at XtTextInvalidate and it does call a function pointer:
void XtTextInvalidate(w, from, to)
Widget w;
XtTextPosition from,to;
{
TextWidget ctx = (TextWidget) w;
ctx->text.lastPos = (*ctx->text.source->GetLastPos)(ctx->text.source);
_XtTextPrepareToUpdate(ctx);
_XtTextNeedsUpdating(ctx, from, to);
ForceBuildLineTable(ctx);
_XtTextExecuteUpdate(ctx);
}
and sure enough, I can not find any place in the toolkit where
GetLastPos is set. There is a define 'GETLASTPOS' which looks
like it should do the right thing...
Am I missing something or is there a bug in the 'source' creation
routines that does not initialize the GetLastPos field?
Rick Spickelmier
UC Berkeley
ricks@berkeley.edu