mask = XtAppPending(ac);
mask = XPending((Display *)user_data);  GDK_THREADS_LEAVE ();  return (gboolean)mask; }
xt_event_check (gpointer  source_data,                 GTimeVal *current_time,                 gpointer  user_data){  Display * display;  XtAppContext ac;  XtInputMask mask;  GDK_THREADS_ENTER ();  display = (Display *)user_data;  ac = XtDisplayToApplicationContext(display);  mask = XtAppPending(ac);  GDK_THREADS_LEAVE ();  if (mask)    return TRUE;  else    return FALSE;}   