diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-06-22 13:48:21 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-06-26 09:56:00 -0400 |
commit | cbf5be467f3ace014430967dd9e7e0732d5ae7d1 (patch) | |
tree | 56b82417d744fa2b4f88451cfdc3af9afecea233 | |
parent | 6ddf285abe5ea1eef84aa2cc487eb9a7bfbe45c7 (diff) | |
download | eclipse.platform.swt-cbf5be467f3ace014430967dd9e7e0732d5ae7d1.tar.gz eclipse.platform.swt-cbf5be467f3ace014430967dd9e7e0732d5ae7d1.tar.xz eclipse.platform.swt-cbf5be467f3ace014430967dd9e7e0732d5ae7d1.zip |
Make gdk_gc_set_exposures() 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 e02fb8658e..9d1890cd4e 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 @@ -5895,7 +5895,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 e8e752c926..f21e8ca75a 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 @@ -165,6 +165,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 4f56e7312f..9a5db196bf 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 @@ -4372,8 +4372,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) { |