diff options
author | Alexander Kurtakov | 2012-02-29 20:26:02 +0000 |
---|---|---|
committer | Silenio Quarti | 2012-03-05 22:38:39 +0000 |
commit | 8f38c5bb4038a6567d71192eef13ddcca0d9acec (patch) | |
tree | 8e8e02daac3a2689f43403c215674612b6cc5411 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | |
parent | 716f2741149429ab03db74a38566b08f01a32112 (diff) | |
download | eclipse.platform.swt-8f38c5bb4038a6567d71192eef13ddcca0d9acec.tar.gz eclipse.platform.swt-8f38c5bb4038a6567d71192eef13ddcca0d9acec.tar.xz eclipse.platform.swt-8f38c5bb4038a6567d71192eef13ddcca0d9acec.zip |
Use gdk_text_property_to_utf8_list + _for_display.
Usage of gdk_text_property_to_utf8_list is deprecated and removed in
gtk3 but gdk_text_property_to_utf8_list_for_display is still here
for usage.
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 | 18 |
1 files changed, 9 insertions, 9 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 23bedb8329..d74153f857 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 @@ -6671,18 +6671,18 @@ fail: } #endif -#ifndef NO__1gdk_1text_1property_1to_1utf8_1list -JNIEXPORT jint JNICALL OS_NATIVE(_1gdk_1text_1property_1to_1utf8_1list) - (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jintLong arg2, jint arg3, jintLongArray arg4) +#ifndef NO__1gdk_1text_1property_1to_1utf8_1list_1for_1display +JNIEXPORT jint JNICALL OS_NATIVE(_1gdk_1text_1property_1to_1utf8_1list_1for_1display) + (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jint arg2, jintLong arg3, jint arg4, jintLongArray arg5) { - jintLong *lparg4=NULL; + jintLong *lparg5=NULL; jint rc = 0; - OS_NATIVE_ENTER(env, that, _1gdk_1text_1property_1to_1utf8_1list_FUNC); - if (arg4) if ((lparg4 = (*env)->GetIntLongArrayElements(env, arg4, NULL)) == NULL) goto fail; - rc = (jint)gdk_text_property_to_utf8_list((GdkAtom)arg0, arg1, (guchar *)arg2, arg3, (gchar ***)lparg4); + OS_NATIVE_ENTER(env, that, _1gdk_1text_1property_1to_1utf8_1list_1for_1display_FUNC); + if (arg5) if ((lparg5 = (*env)->GetIntLongArrayElements(env, arg5, NULL)) == NULL) goto fail; + rc = (jint)gdk_text_property_to_utf8_list_for_display((GdkDisplay *)arg0, (GdkAtom)arg1, arg2, (guchar *)arg3, arg4, (gchar ***)lparg5); fail: - if (arg4 && lparg4) (*env)->ReleaseIntLongArrayElements(env, arg4, lparg4, 0); - OS_NATIVE_EXIT(env, that, _1gdk_1text_1property_1to_1utf8_1list_FUNC); + if (arg5 && lparg5) (*env)->ReleaseIntLongArrayElements(env, arg5, lparg5, 0); + OS_NATIVE_EXIT(env, that, _1gdk_1text_1property_1to_1utf8_1list_1for_1display_FUNC); return rc; } #endif |