The
XSetTextProperty()
function replaces the existing specified property for the named window
with the data, type, format, and number of items determined
by the value field, the encoding field, the format field,
and the nitems field, respectively, of the specified
XTextProperty
structure.
If the property does not already exist,
XSetTextProperty()
sets it for the specified window.
XSetTextProperty()
can generate
BadAlloc,
BadAtom,
BadValue,
and
BadWindow
errors.
Diagnostics
BadAlloc
The server failed to allocate the requested
source or server memory.
BadAtom
A value for an Atom argument does not name a
defined Atom.
BadWindow
A value for a Window argument does not name a defined Window.