diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-09-28 15:30:05 -0400 |
---|---|---|
committer | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-10-01 18:53:39 +0530 |
commit | a1ea264f398a2f293995337738255407e55a15c7 (patch) | |
tree | 64564fe39dc929a8241683ace0d68ac723a95dfa | |
parent | e7d01beb79c3a072f69f3d2c45e7b1578ac95d5d (diff) | |
download | eclipse.platform.swt-a1ea264f398a2f293995337738255407e55a15c7.tar.gz eclipse.platform.swt-a1ea264f398a2f293995337738255407e55a15c7.tar.xz eclipse.platform.swt-a1ea264f398a2f293995337738255407e55a15c7.zip |
Make gdk_gc_set_fill () dynamic
This patch makes GTK+ 2 function gdk_gc_set_fill () dynamic
3 files changed, 11 insertions, 5 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 711216e7f7..416294629b 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 @@ -5641,7 +5641,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1fill) (JNIEnv *env, jclass that, jintLong arg0, jint arg1) { OS_NATIVE_ENTER(env, that, _1gdk_1gc_1set_1fill_FUNC); - gdk_gc_set_fill((GdkGC *)arg0, (GdkFill)arg1); +/* + gdk_gc_set_fill(arg0, arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_gc_set_fill) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jint))fp)(arg0, arg1); + } + } OS_NATIVE_EXIT(env, that, _1gdk_1gc_1set_1fill_FUNC); } #endif diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h index 02377cef21..afd690ecd4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h @@ -186,6 +186,7 @@ #define gdk_gc_set_background_LIB LIB_GDK #define gdk_gc_set_stipple_LIB LIB_GDK #define gdk_gc_set_clip_mask_LIB LIB_GDK +#define gdk_gc_set_fill_LIB LIB_GDK #define gdk_gc_set_clip_origin_LIB LIB_GDK #define gdk_gc_set_dashes_LIB LIB_GDK #define gdk_gc_set_exposures_LIB LIB_GDK diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java index 91c1865255..e7230800c2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java @@ -4208,10 +4208,7 @@ public static final void gdk_gc_set_exposures(long /*int*/ gc, boolean exposures lock.unlock(); } } -/** - * @param gc cast=(GdkGC *) - * @param fill cast=(GdkFill) - */ +/** @method flags=dynamic */ public static final native void _gdk_gc_set_fill(long /*int*/ gc, int fill); public static final void gdk_gc_set_fill(long /*int*/ gc, int fill) { lock.lock(); |