diff options
author | Silenio Quarti <silenio> | 2008-04-16 22:50:41 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-04-16 22:50:41 +0000 |
commit | be6f344f6c5c168c19ca2e69a5af59ce3b851963 (patch) | |
tree | feb4936ca2a23ef6041dc61e3c6d4d90001bf01a /bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c | |
parent | dff12c6acd8909ca8291683b0755a76e3389df80 (diff) | |
download | eclipse.platform.swt-be6f344f6c5c168c19ca2e69a5af59ce3b851963.tar.gz eclipse.platform.swt-be6f344f6c5c168c19ca2e69a5af59ce3b851963.tar.xz eclipse.platform.swt-be6f344f6c5c168c19ca2e69a5af59ce3b851963.zip |
227411 - Controls in shell blocked by a modal shell still scroll via the scroll wheel
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c index 0194ee19fc..1012a43498 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c @@ -8937,6 +8937,22 @@ JNIEXPORT void JNICALL OS_NATIVE(HIWindowFlush) } #endif +#ifndef NO_HIWindowIsDocumentModalTarget +JNIEXPORT jboolean JNICALL OS_NATIVE(HIWindowIsDocumentModalTarget) + (JNIEnv *env, jclass that, jint arg0, jintArray arg1) +{ + jint *lparg1=NULL; + jboolean rc = 0; + OS_NATIVE_ENTER(env, that, HIWindowIsDocumentModalTarget_FUNC); + if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; + rc = (jboolean)HIWindowIsDocumentModalTarget((WindowRef)arg0, (WindowRef*)lparg1); +fail: + if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); + OS_NATIVE_EXIT(env, that, HIWindowIsDocumentModalTarget_FUNC); + return rc; +} +#endif + #ifndef NO_HLock JNIEXPORT void JNICALL OS_NATIVE(HLock) (JNIEnv *env, jclass that, jint arg0) |