Home | History | Annotate | Download | only in dist

Lines Matching refs:auto_replace

153 } auto_replace;
160 if (w != textwindow || !auto_replace.enabled)
163 if (auto_replace.widget != textwindow) {
164 if (auto_replace.replace) {
165 auto_replace.replace = False;
166 XtRemoveCallback(auto_replace.widget, XtNpositionCallback,
192 char ch, *tmp, *left, *right, *replace = app_resources.auto_replace;
249 return (auto_replace.enabled = count > 0);
322 if ((auto_replace.text = ReplacedWord(str, NULL)) != NULL) {
323 auto_replace.length = strlen(auto_replace.text);
324 auto_replace.left = left;
325 auto_replace.right = right;
326 auto_replace.replace = True;
327 XtAddCallback(auto_replace.widget = w, XtNpositionCallback,
343 if (!auto_replace.replace || w != auto_replace.widget)
346 XtRemoveCallback(auto_replace.widget, XtNpositionCallback,
348 auto_replace.replace = False;
350 inc = XawTextGetInsertionPoint(w) - auto_replace.right;
351 if (auto_replace.length + inc > sizeof(buffer))
352 block.ptr = XtMalloc(auto_replace.length + inc);
355 memcpy(block.ptr, auto_replace.text, auto_replace.length);
357 block.length = auto_replace.length;
358 pos = left = auto_replace.right;
374 if (XawTextReplace(w, auto_replace.left, auto_replace.right + inc,
376 XawTextSetInsertionPoint(w, auto_replace.left + block.length);