summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-04-16 22:50:41 +0000
committerSilenio Quarti <silenio>2008-04-16 22:50:41 +0000
commitbe6f344f6c5c168c19ca2e69a5af59ce3b851963 (patch)
treefeb4936ca2a23ef6041dc61e3c6d4d90001bf01a /bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
parentdff12c6acd8909ca8291683b0755a76e3389df80 (diff)
downloadeclipse.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.c16
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)