1
/* $Xorg: SetTxtProp.c,v 1.4 2001/02/09 02:03:36 xorgcvs Exp $ */
2
/***********************************************************
3
Copyright 1988 by Wyse Technology, Inc., San Jose, Ca.
7
Permission to use, copy, modify, and distribute this software and its
8
documentation for any purpose and without fee is hereby granted,
9
provided that the above copyright notice appear in all copies and that
10
both that copyright notice and this permission notice appear in
11
supporting documentation, and that the name of Wyse not be
12
used in advertising or publicity pertaining to distribution of the
13
software without specific, written prior permission.
15
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
23
******************************************************************/
26
Copyright 1988, 1998 The Open Group
28
Permission to use, copy, modify, distribute, and sell this software and its
29
documentation for any purpose is hereby granted without fee, provided that
30
the above copyright notice appear in all copies and that both that
31
copyright notice and this permission notice appear in supporting
34
The above copyright notice and this permission notice shall be included
35
in all copies or substantial portions of the Software.
37
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
38
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
40
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
41
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
42
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43
OTHER DEALINGS IN THE SOFTWARE.
45
Except as contained in this notice, the name of The Open Group shall
46
not be used in advertising or otherwise to promote the sale, use or
47
other dealings in this Software without prior written authorization
52
#include <X11/Xlibint.h>
53
#include <X11/Xatom.h>
54
#include <X11/Xutil.h>
58
void XSetTextProperty (dpy, w, tp, property)
64
XChangeProperty (dpy, w, property, tp->encoding, tp->format,
65
PropModeReplace, tp->value, tp->nitems);
68
void XSetWMName (dpy, w, tp)
73
XSetTextProperty (dpy, w, tp, XA_WM_NAME);
76
void XSetWMIconName (dpy, w, tp)
81
XSetTextProperty (dpy, w, tp, XA_WM_ICON_NAME);
84
void XSetWMClientMachine (dpy, w, tp)
89
XSetTextProperty (dpy, w, tp, XA_WM_CLIENT_MACHINE);