Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!shambhala.Berkeley.EDU!ricks From: ricks@shambhala.Berkeley.EDU (Rick L Spickelmier) Newsgroups: comp.windows.x Subject: XtTextInvalidate and the toolkit Message-ID: <7724@pasteur.Berkeley.EDU> Date: 23 Nov 88 21:18:31 GMT Sender: news@pasteur.Berkeley.EDU Lines: 29 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