src/solaris/native/sun/awt/awt_InputMethod.c

Print this page
rev 7203 : imported patch 7006052

*** 183,193 **** XIM /* im */, ... #endif ); #endif - #ifdef XAWT_HACK /* * This function is stolen from /src/solaris/hpi/src/system_md.c * It is used in setting the time in Java-level InputEvents */ jlong --- 183,192 ----
*** 195,205 **** { struct timeval t; gettimeofday(&t, NULL); return ((jlong)t.tv_sec) * 1000 + (jlong)(t.tv_usec/1000); } - #endif /* XAWT_HACK */ /* * Converts the wchar_t string to a multi-byte string calling wcstombs(). A * buffer is allocated by malloc() to store the multi-byte string. NULL is * returned if the given wchar_t string pointer is NULL or buffer allocation is --- 194,203 ----
*** 544,558 **** JNU_CallMethodByName(env, NULL, currentX11InputMethodInstance, "dispatchCommittedText", "(Ljava/lang/String;J)V", javastr, - #ifndef XAWT_HACK - awt_util_nowMillisUTC_offset(event->time)); - #else event->time); - #endif } break; case XLookupKeySym: /* --- 542,552 ----