Lines Matching refs:im

45     Xim		  im)
53 _XimCurrentIMlist[0] = im;
59 _XimCurrentIMlist[i] = im;
68 _XimCurrentIMlist[_XimCurrentIMcount] = im;
76 _XimDestroyIMStructureList(Xim im)
81 if(_XimCurrentIMlist[i] == im) {
93 Xim im;
97 if(!(im = _XimCurrentIMlist[i]))
100 * Only continue if this im is the one to be destroyed.
102 if (im != im_2_destroy)
105 if (im->core.destroy_callback.callback)
106 (*im->core.destroy_callback.callback)((XIM)im,
107 im->core.destroy_callback.client_data, NULL);
108 for (ic = im->core.ic_chain; ic; ic = ic->core.next) {
114 _XimResetIMInstantiateCallback( im );
115 (void)im->methods->close((XIM)im);
116 Xfree(im);
127 Xim im;
131 if(!(im = _XimCurrentIMlist[i]))
134 if (im->core.destroy_callback.callback)
135 (*im->core.destroy_callback.callback)(im,
136 im->core.destroy_callback.client_data, NULL);
137 for (ic = im->core.ic_chain; ic; ic = ic->core.next) {
143 _XimResetIMInstantiateCallback( im );
144 (void)im->methods->close((XIM)im);
204 Xim im;
207 if (!(im = Xcalloc(1, sizeof(XimRec))))
210 im->core.lcd = lcd;
211 im->core.ic_chain = (XIC)NULL;
212 im->core.display = dpy;
213 im->core.rdb = rdb;
214 im->core.res_name = NULL;
215 im->core.res_class = NULL;
217 if(!(im->core.res_name = strdup(res_name)))
221 if(!(im->core.res_class = strdup(res_class)))
224 if(!(im->core.im_name = _XimMakeImName(lcd)))
228 if(_XimImSportRec[i].checkprocessing(im)) {
229 if(!(_XimImSportRec[i].im_open(im)))
231 if(!_XimSetIMStructureList(im))
233 return (XIM)im;
238 _XimImSportRec[i].im_free(im);
239 Xfree(im);
242 Xfree(im->core.im_name);
244 Xfree(im->core.res_class);
246 Xfree(im->core.res_name);
247 Xfree(im);