imLcSIc.c revision eb411b4b
1/****************************************************************** 2 3 Copyright 1990, 1991, 1992, 1993, 1994 by FUJITSU LIMITED 4 5Permission to use, copy, modify, distribute, and sell this software 6and its documentation for any purpose is hereby granted without fee, 7provided that the above copyright notice appear in all copies and 8that both that copyright notice and this permission notice appear 9in supporting documentation, and that the name of FUJITSU LIMITED 10not be used in advertising or publicity pertaining to distribution 11of the software without specific, written prior permission. 12FUJITSU LIMITED makes no representations about the suitability of 13this software for any purpose. 14It is provided "as is" without express or implied warranty. 15 16FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 18EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 20USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 21OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 22PERFORMANCE OF THIS SOFTWARE. 23 24 Author: Takashi Fujiwara FUJITSU LIMITED 25 fujiwara@a80.tech.yk.fujitsu.co.jp 26 27******************************************************************/ 28 29#ifdef HAVE_CONFIG_H 30#include <config.h> 31#endif 32#include <stdio.h> 33#include <X11/Xlib.h> 34#include <X11/Xmd.h> 35#include <X11/Xutil.h> 36#include "Xlibint.h" 37#include "Xlcint.h" 38#include "Ximint.h" 39 40char * 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} 55