diff options
author | Alexander Kurtakov | 2016-12-22 07:15:49 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-12-22 07:15:49 +0000 |
commit | 8719787f5c34beaf06229310c09d6063a7bb6e08 (patch) | |
tree | 66e47309ffa1f821cb9ab070ba80ed0a936a6dbe /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | |
parent | 06068755734d046d4f34a7b6c1cf5ddd8bf43eb5 (diff) | |
download | eclipse.platform.swt-8719787f5c34beaf06229310c09d6063a7bb6e08.tar.gz eclipse.platform.swt-8719787f5c34beaf06229310c09d6063a7bb6e08.tar.xz eclipse.platform.swt-8719787f5c34beaf06229310c09d6063a7bb6e08.zip |
Bug 125023 - SWT.NO_CURSOR is not correct
Use "not-allowed" named cursor instead of GDK_X_CURSOR.
Change-Id: I270d8ab0bc88d17fec6ae7f216f8297ce32e5441
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c index c895572104..bf01315f4f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c @@ -4005,6 +4005,22 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1cursor_1new_1for_1display) } #endif +#ifndef NO__1gdk_1cursor_1new_1from_1name +JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1cursor_1new_1from_1name) + (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1) +{ + jbyte *lparg1=NULL; + jintLong rc = 0; + OS_NATIVE_ENTER(env, that, _1gdk_1cursor_1new_1from_1name_FUNC); + if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; + rc = (jintLong)gdk_cursor_new_from_name((GdkDisplay *)arg0, (const gchar *)lparg1); +fail: + if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); + OS_NATIVE_EXIT(env, that, _1gdk_1cursor_1new_1from_1name_FUNC); + return rc; +} +#endif + #ifndef NO__1gdk_1cursor_1new_1from_1pixbuf JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1cursor_1new_1from_1pixbuf) (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jint arg2, jint arg3) |