File gtk+-1.2.10.dif of Package gtk1
--- gdk/gdkim.c
+++ gdk/gdkim.c 2001/03/12 16:14:37
@@ -386,10 +386,11 @@
{
#ifdef USE_X11R6_XIM
XIMCallback destroy_cb;
+ extern char *XSetIMValues (XIM, ...); /* Missing from X headers */
destroy_cb.callback = gdk_im_destroy_cb;
destroy_cb.client_data = NULL;
- if (NULL != (void *) XSetIMValues (xim_im, XNDestroyCallback, &destroy_cb, NULL))
+ if (NULL != XSetIMValues (xim_im, XNDestroyCallback, &destroy_cb, NULL))
GDK_NOTE (XIM, g_warning ("Could not set destroy callback to IM. Be careful to not destroy your input method."));
#endif