diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-06-22 13:48:21 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-06-22 13:48:21 -0400 |
commit | cd2a1c7e20e76ab4bcf5bb13cac633e44cc65b25 (patch) | |
tree | e8820c0b17bc13c8a738c29ac2cd3c36b51f695f | |
parent | 8590a0270cb2bb1aa73aa7e9c9537d9103ef7a4c (diff) | |
download | eclipse.platform.swt-make_dynamic.tar.gz eclipse.platform.swt-make_dynamic.tar.xz eclipse.platform.swt-make_dynamic.zip |
Make gdk_gc_set_exposures() dynamicmake_dynamic
3 files changed, 11 insertions, 3 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 c68b18e268..f4241c1d70 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 @@ -5843,7 +5843,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1exposures) (JNIEnv *env, jclass that, jintLong arg0, jboolean arg1) { OS_NATIVE_ENTER(env, that, _1gdk_1gc_1set_1exposures_FUNC); - gdk_gc_set_exposures((GdkGC *)arg0, (gboolean)arg1); +/* + gdk_gc_set_exposures(arg0, arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_gc_set_exposures) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jboolean))fp)(arg0, arg1); + } + } OS_NATIVE_EXIT(env, that, _1gdk_1gc_1set_1exposures_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 4a31940976..a0b2eb9b1f 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 @@ -161,6 +161,7 @@ #define gdk_gc_set_clip_mask_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 #define gdk_gc_set_line_attributes_LIB LIB_GDK #define gdk_gc_set_tile_LIB LIB_GDK #define gdk_gc_set_ts_origin_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 ed832374c1..6fa7e9ab32 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 @@ -4344,8 +4344,7 @@ public static final void gdk_gc_set_dashes(int /*long*/ gc, int dash_offset, byt } } /** - * @param gc cast=(GdkGC *) - * @param exposures cast=(gboolean) + * @method flags=dynamic */ public static final native void _gdk_gc_set_exposures(int /*long*/ gc, boolean exposures); public static final void gdk_gc_set_exposures(int /*long*/ gc, boolean exposures) { |