Lines Matching refs:new
340 Tk_Window new;
348 new = Tk_CreateWindowFromPath(interp, tkwin, argv[1], (char *) NULL);
349 if (new == NULL) {
360 entryPtr->tkwin = new;
361 entryPtr->display = Tk_Display(new);
872 GC new;
929 new = Tk_GetGC(entryPtr->tkwin, GCForeground|GCFont|GCGraphicsExposures,
934 entryPtr->textGC = new;
938 new = Tk_GetGC(entryPtr->tkwin, GCForeground|GCFont, &gcValues);
942 entryPtr->selTextGC = new;
1317 * Add new characters to an entry widget.
1331 register Entry *entryPtr; /* Entry that is to get the new
1333 int index; /* Add the new elements before this
1339 char *new;
1345 new = (char *) ckalloc((unsigned) (entryPtr->numChars + length + 1));
1346 strncpy(new, entryPtr->string, (size_t) index);
1347 strcpy(new+index, string);
1348 strcpy(new+index+length, entryPtr->string+index);
1350 entryPtr->string = new;
1356 * characters (at new positions). When updating the selection
1357 * end-points, don't include the new text in the selection unless
1403 char *new;
1412 new = (char *) ckalloc((unsigned) (entryPtr->numChars + 1 - count));
1413 strncpy(new, entryPtr->string, (size_t) index);
1414 strcpy(new+index, entryPtr->string+index+count);
1416 entryPtr->string = new;
1536 * within the bounds of the new string. Note: this procedure does
1817 * Compute new leftIndex for entry by amplifying the difference
1882 * Pick new starting and ending points for the selection.