diff options
author | Alexander Kurtakov <akurtako@redhat.com> | 2012-03-15 23:53:54 +0200 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-03-19 11:18:26 -0400 |
commit | 7f0e92a474848114999c959f30c9cf5832b6e8f4 (patch) | |
tree | eb146c59772c08f0d51565ae3d15a699953dabd6 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | |
parent | d8c49d477cf9fc567bbfb4474cead56e9b9cfb0a (diff) | |
download | eclipse.platform.swt-7f0e92a474848114999c959f30c9cf5832b6e8f4.tar.gz eclipse.platform.swt-7f0e92a474848114999c959f30c9cf5832b6e8f4.tar.xz eclipse.platform.swt-7f0e92a474848114999c959f30c9cf5832b6e8f4.zip |
Make gdk_gc_set_background dynamic.
Single usage, cairo alternative is implemented.
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 | 10 |
1 files changed, 9 insertions, 1 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 84823396a6..38d416a1b5 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 @@ -5718,7 +5718,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1background) GdkColor _arg1, *lparg1=NULL; OS_NATIVE_ENTER(env, that, _1gdk_1gc_1set_1background_FUNC); if (arg1) if ((lparg1 = getGdkColorFields(env, arg1, &_arg1)) == NULL) goto fail; - gdk_gc_set_background((GdkGC *)arg0, (GdkColor *)lparg1); +/* + gdk_gc_set_background(arg0, (GdkColor *)lparg1); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_gc_set_background) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, GdkColor *))fp)(arg0, (GdkColor *)lparg1); + } + } fail: OS_NATIVE_EXIT(env, that, _1gdk_1gc_1set_1background_FUNC); } |