diff options
| author | Alexander Kurtakov | 2012-03-16 09:55:05 +0000 |
|---|---|---|
| committer | Silenio Quarti | 2012-03-19 15:25:52 +0000 |
| commit | 6e1594dad53830d9eab9df02ca1e83163cb61f69 (patch) | |
| tree | e802e6d0f873b1d168353985f7662de22c944e79 | |
| parent | 053b81f18025ae09c1c43eee59b532cffb7238db (diff) | |
| download | eclipse.platform.ui-6e1594dad53830d9eab9df02ca1e83163cb61f69.tar.gz eclipse.platform.ui-6e1594dad53830d9eab9df02ca1e83163cb61f69.tar.xz eclipse.platform.ui-6e1594dad53830d9eab9df02ca1e83163cb61f69.zip | |
Make gdk_gc_set_tile dynamic.
All usages are covered by alternative cairo implementation.
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 35fe8b8ece5..3c7c5fc3271 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 @@ -5900,7 +5900,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1tile) (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1) { OS_NATIVE_ENTER(env, that, _1gdk_1gc_1set_1tile_FUNC); - gdk_gc_set_tile((GdkGC *)arg0, (GdkPixmap *)arg1); +/* + gdk_gc_set_tile(arg0, arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_gc_set_tile) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jintLong))fp)(arg0, arg1); + } + } OS_NATIVE_EXIT(env, that, _1gdk_1gc_1set_1tile_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 30fd7d15a2e..287b0e615ea 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 @@ -158,6 +158,7 @@ #define gdk_gc_set_clip_origin_LIB LIB_GDK #define gdk_gc_set_dashes_LIB LIB_GDK #define gdk_gc_set_line_attributes_LIB LIB_GDK +#define gdk_gc_set_tile_LIB LIB_GDK #define gdk_pixbuf_save_to_bufferv_LIB LIB_GDK #define gdk_screen_get_default_LIB LIB_GDK #define gdk_screen_get_monitor_at_point_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 ff9807e600f..a16ebe51d3d 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 @@ -4436,8 +4436,7 @@ public static final void gdk_gc_set_subwindow(int /*long*/ gc, int /*long*/ mode } } /** - * @param gc cast=(GdkGC *) - * @param tile cast=(GdkPixmap *) + * @method flags=dynamic */ public static final native void _gdk_gc_set_tile(int /*long*/ gc, int /*long*/ tile); public static final void gdk_gc_set_tile(int /*long*/ gc, int /*long*/ tile) { |
