diff options
author | Alexander Kurtakov | 2016-03-30 10:56:11 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-03-30 11:36:54 +0000 |
commit | 1f65a53ed6bc8d775ec9fa4aa376b605fe564c52 (patch) | |
tree | 89de3a2230356b4fa4daa8b616d0bd9edb9ac531 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | |
parent | e6aa8d822f8581a161bd52232b3d0b6a0067663c (diff) | |
download | eclipse.platform.swt-1f65a53ed6bc8d775ec9fa4aa376b605fe564c52.tar.gz eclipse.platform.swt-1f65a53ed6bc8d775ec9fa4aa376b605fe564c52.tar.xz eclipse.platform.swt-1f65a53ed6bc8d775ec9fa4aa376b605fe564c52.zip |
Bug 490671 - Make gtk_settings_set_string_property dynamic
Used only on Gtk 2.x and deprecated since Gtk 3.16 so let's make it
dynamic to reduce compiler noise when compiling on GTK 3.
Change-Id: I7d5327897dca35764a2831f5322762d200776cd8
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 | 8 |
1 files changed, 8 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 36386c21f9..04cc7edefd 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 @@ -15279,7 +15279,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1settings_1set_1string_1property) if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; +/* gtk_settings_set_string_property((GtkSettings *)arg0, (const gchar *)lparg1, (const gchar *)lparg2, (const gchar *)lparg3); +*/ + { + OS_LOAD_FUNCTION(fp, gtk_settings_set_string_property) + if (fp) { + ((void (CALLING_CONVENTION*)(GtkSettings *, const gchar *, const gchar *, const gchar *))fp)((GtkSettings *)arg0, (const gchar *)lparg1, (const gchar *)lparg2, (const gchar *)lparg3); + } + } fail: if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |