summaryrefslogtreecommitdiff
path: root/xc/lib/Xaw/TextSrc.c
diff options
context:
space:
mode:
authorfaith <faith>2000-01-06 12:41:09 +0000
committerfaith <faith>2000-01-06 12:41:09 +0000
commit0387caff984518490a7dc7834a184390bbf4fb97 (patch)
tree3e384e8272b323453802e0cb015c3e28e1077174 /xc/lib/Xaw/TextSrc.c
parentb700746a28cb32d457c7aae74d8d04ffd0e4ab5d (diff)
Import of XFree86 3.9.17
Diffstat (limited to 'xc/lib/Xaw/TextSrc.c')
-rw-r--r--xc/lib/Xaw/TextSrc.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/xc/lib/Xaw/TextSrc.c b/xc/lib/Xaw/TextSrc.c
index 28df0127a..6170ff439 100644
--- a/xc/lib/Xaw/TextSrc.c
+++ b/xc/lib/Xaw/TextSrc.c
@@ -21,7 +21,7 @@ in this Software without prior written authorization from The Open Group.
*/
-/* $XFree86: xc/lib/Xaw/TextSrc.c,v 1.22 1999/08/28 09:00:28 dawes Exp $ */
+/* $XFree86: xc/lib/Xaw/TextSrc.c,v 1.23 1999/09/27 06:29:11 dawes Exp $ */
/*
* Author: Chris Peterson, MIT X Consortium.
@@ -1750,13 +1750,8 @@ XawTextSourceRemoveAnchor(Widget w, XawTextAnchor *anchor)
return (NULL);
}
-/*
- * This function is very likely to change soon. Currently, there is a hack
- * to test/develop the XAW_TENTF_REPLACE attribute using the `type' argument
- * as a pointer to a *static* XawTextBlock structure.
- */
XawTextEntity *
-XawTextSourceAddEntity(Widget w, int type, int flags,
+XawTextSourceAddEntity(Widget w, int type, int flags, XtPointer data,
XawTextPosition position, Cardinal length,
XrmQuark property)
{
@@ -1809,20 +1804,16 @@ XawTextSourceAddEntity(Widget w, int type, int flags,
(void)XawTextSourceRemoveAnchor(w, next);
entity->next = NULL;
- return (XawTextSourceAddEntity(w, type, flags, position,
+ return (XawTextSourceAddEntity(w, type, flags, data, position,
length, property));
}
}
}
entity = XtNew(XawTextEntity);
- if (flags & XAW_TENTF_REPLACE) {
- entity->type = 0;
- entity->data = (XtPointer)type;
- }
- else
- entity->type = type;
+ entity->type = type;
entity->flags = flags;
+ entity->data = data;
entity->offset = position - anchor->position;
entity->length = length;
entity->property = property;