summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2012-03-15 23:53:54 +0200
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-03-19 11:18:26 -0400
commit7f0e92a474848114999c959f30c9cf5832b6e8f4 (patch)
treeeb146c59772c08f0d51565ae3d15a699953dabd6 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
parentd8c49d477cf9fc567bbfb4474cead56e9b9cfb0a (diff)
downloadeclipse.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.c10
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);
}