| 1 |
/****************************************************************** |
| 2 |
|
| 3 |
Copyright 1990, 1991, 1992, 1993, 1994 by FUJITSU LIMITED |
| 4 |
|
| 5 |
Permission to use, copy, modify, distribute, and sell this software |
| 6 |
and its documentation for any purpose is hereby granted without fee, |
| 7 |
provided that the above copyright notice appear in all copies and |
| 8 |
that both that copyright notice and this permission notice appear |
| 9 |
in supporting documentation, and that the name of FUJITSU LIMITED |
| 10 |
not be used in advertising or publicity pertaining to distribution |
| 11 |
of the software without specific, written prior permission. |
| 12 |
FUJITSU LIMITED makes no representations about the suitability of |
| 13 |
this software for any purpose. |
| 14 |
It is provided "as is" without express or implied warranty. |
| 15 |
|
| 16 |
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
| 17 |
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO |
| 18 |
EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
| 19 |
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF |
| 20 |
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| 21 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 22 |
PERFORMANCE OF THIS SOFTWARE. |
| 23 |
|
| 24 |
Author: Takashi Fujiwara FUJITSU LIMITED |
| 25 |
[email protected] |
| 26 |
|
| 27 |
******************************************************************/ |
| 28 |
|
| 29 |
#ifdef HAVE_CONFIG_H |
| 30 |
#include <config.h> |
| 31 |
#endif |
| 32 |
#include <stdio.h> |
| 33 |
#include <nx-X11/Xlib.h> |
| 34 |
#include <nx-X11/Xmd.h> |
| 35 |
#include <nx-X11/Xutil.h> |
| 36 |
#include "Xlibint.h" |
| 37 |
#include "Xlcint.h" |
| 38 |
#include "Ximint.h" |
| 39 |
|
| 40 |
char * |
| 41 |
_XimLocalSetICValues(XIC xic, XIMArg *values) |
| 42 |
{ |
| 43 |
XimDefICValues ic_values; |
| 44 |
Xic ic = (Xic)xic; |
| 45 |
char *name; |
| 46 |
|
| 47 |
_XimGetCurrentICValues(ic, &ic_values); |
| 48 |
name = _XimSetICValueData(ic, (XPointer)&ic_values, |
| 49 |
ic->private.local.ic_resources, |
| 50 |
ic->private.local.ic_num_resources, |
| 51 |
values, XIM_SETICVALUES, True); |
| 52 |
_XimSetCurrentICValues(ic, &ic_values); |
| 53 |
return(name); |
| 54 |
} |