Lines Matching refs:salt
531 ctx->text.salt = NULL;
1516 XawTextSelectionSalt *salt = NULL;
1561 for (salt = ctx->text.salt; salt; salt = salt->next)
1562 if (MatchSelection (*selection, &salt->s))
1564 if (!salt)
1566 s = &salt->s;
1580 * If salt is True, the salt->contents stores CT string,
1586 if (!salt) {
1603 *value = XtMalloc((salt->length + 1) * sizeof(unsigned char));
1604 strcpy (*value, salt->contents);
1605 *length = salt->length;
1666 if (!salt)
1715 XawTextSelectionSalt *salt, *prevSalt, *nextSalt;
1749 for (salt = ctx->text.salt; salt; salt = nextSalt)
1751 atomP = salt->s.selections;
1752 nextSalt = salt->next;
1753 for (i = 0 ; i < salt->s.atom_count; i++, atomP++)
1757 while (salt->s.atom_count &&
1758 salt->s.selections[salt->s.atom_count-1] == 0)
1760 salt->s.atom_count--;
1767 atomP = salt->s.selections;
1768 for (i = 0 ; i < salt->s.atom_count; i++, atomP++)
1771 *atomP = salt->s.selections[--salt->s.atom_count];
1772 while (salt->s.atom_count &&
1773 salt->s.selections[salt->s.atom_count-1] == 0)
1774 salt->s.atom_count--;
1776 if (salt->s.atom_count == 0)
1778 XtFree ((char *) salt->s.selections);
1779 XtFree (salt->contents);
1783 ctx->text.salt = nextSalt;
1784 XtFree ((char *) salt);
1787 prevSalt = salt;
1797 XawTextSelectionSalt *salt;
1804 salt = (XawTextSelectionSalt *)
1806 if (!salt)
1808 salt->s.selections = (Atom *)
1810 if (!salt->s.selections)
1812 XtFree ((char *) salt);
1815 salt->s.left = ctx->text.s.left;
1816 salt->s.right = ctx->text.s.right;
1817 salt->s.type = ctx->text.s.type;
1818 salt->contents = _XawTextGetSTRING(ctx, ctx->text.s.left, ctx->text.s.right);
1822 (wchar_t**)(&(salt->contents)), 1, XCompoundTextStyle,
1824 XtFree(salt->contents);
1825 salt->length = 0;
1828 XtFree(salt->contents);
1829 salt->contents = (char *)textprop.value;
1830 salt->length = textprop.nitems;
1832 salt->length = strlen (salt->contents);
1833 salt->next = ctx->text.salt;
1834 ctx->text.salt = salt;
1840 salt->s.selections[j++] = selections[i];
1845 salt->s.atom_count = j;