| 1 |
/*********************************************************** |
| 2 |
Copyright 1988 by Wyse Technology, Inc., San Jose, Ca. |
| 3 |
|
| 4 |
All Rights Reserved |
| 5 |
|
| 6 |
Permission to use, copy, modify, and distribute this software and its |
| 7 |
documentation for any purpose and without fee is hereby granted, |
| 8 |
provided that the above copyright notice appear in all copies and that |
| 9 |
both that copyright notice and this permission notice appear in |
| 10 |
supporting documentation, and that the name of Wyse not be |
| 11 |
used in advertising or publicity pertaining to distribution of the |
| 12 |
software without specific, written prior permission. |
| 13 |
|
| 14 |
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING |
| 15 |
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL |
| 16 |
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR |
| 17 |
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, |
| 18 |
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, |
| 19 |
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
| 20 |
SOFTWARE. |
| 21 |
|
| 22 |
******************************************************************/ |
| 23 |
/* |
| 24 |
|
| 25 |
Copyright 1988, 1998 The Open Group |
| 26 |
|
| 27 |
Permission to use, copy, modify, distribute, and sell this software and its |
| 28 |
documentation for any purpose is hereby granted without fee, provided that |
| 29 |
the above copyright notice appear in all copies and that both that |
| 30 |
copyright notice and this permission notice appear in supporting |
| 31 |
documentation. |
| 32 |
|
| 33 |
The above copyright notice and this permission notice shall be included |
| 34 |
in all copies or substantial portions of the Software. |
| 35 |
|
| 36 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 37 |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 38 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 39 |
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 40 |
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 41 |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 42 |
OTHER DEALINGS IN THE SOFTWARE. |
| 43 |
|
| 44 |
Except as contained in this notice, the name of The Open Group shall |
| 45 |
not be used in advertising or otherwise to promote the sale, use or |
| 46 |
other dealings in this Software without prior written authorization |
| 47 |
from The Open Group. |
| 48 |
|
| 49 |
*/ |
| 50 |
|
| 51 |
#ifdef HAVE_CONFIG_H |
| 52 |
#include <config.h> |
| 53 |
#endif |
| 54 |
#include <nx-X11/Xlibint.h> |
| 55 |
#include <nx-X11/Xatom.h> |
| 56 |
#include <nx-X11/Xutil.h> |
| 57 |
#include <nx-X11/Xos.h> |
| 58 |
#include <stdio.h> |
| 59 |
|
| 60 |
void XSetTextProperty ( |
| 61 |
Display *dpy, |
| 62 |
Window w, |
| 63 |
XTextProperty *tp, |
| 64 |
Atom property) |
| 65 |
{ |
| 66 |
XChangeProperty (dpy, w, property, tp->encoding, tp->format, |
| 67 |
PropModeReplace, tp->value, tp->nitems); |
| 68 |
} |
| 69 |
|
| 70 |
void XSetWMName ( |
| 71 |
Display *dpy, |
| 72 |
Window w, |
| 73 |
XTextProperty *tp) |
| 74 |
{ |
| 75 |
XSetTextProperty (dpy, w, tp, XA_WM_NAME); |
| 76 |
} |
| 77 |
|
| 78 |
void XSetWMIconName ( |
| 79 |
Display *dpy, |
| 80 |
Window w, |
| 81 |
XTextProperty *tp) |
| 82 |
{ |
| 83 |
XSetTextProperty (dpy, w, tp, XA_WM_ICON_NAME); |
| 84 |
} |
| 85 |
|
| 86 |
void XSetWMClientMachine ( |
| 87 |
Display *dpy, |
| 88 |
Window w, |
| 89 |
XTextProperty *tp) |
| 90 |
{ |
| 91 |
XSetTextProperty (dpy, w, tp, XA_WM_CLIENT_MACHINE); |
| 92 |
} |
| 93 |
|