diff options
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.c | 30 |
1 files changed, 29 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 78b14ecf46..c9f90c1c2b 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 @@ -5405,7 +5405,15 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1drawable_1get_1visible_1region) { jintLong rc = 0; OS_NATIVE_ENTER(env, that, _1gdk_1drawable_1get_1visible_1region_FUNC); - rc = (jintLong)gdk_drawable_get_visible_region((GdkDrawable *)arg0); +/* + rc = (jintLong)gdk_drawable_get_visible_region(arg0); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_drawable_get_visible_region) + if (fp) { + rc = (jintLong)((jintLong (CALLING_CONVENTION*)(jintLong))fp)(arg0); + } + } OS_NATIVE_EXIT(env, that, _1gdk_1drawable_1get_1visible_1region_FUNC); return rc; } @@ -7293,6 +7301,26 @@ fail: } #endif +#ifndef NO__1gdk_1window_1get_1visible_1region +JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1window_1get_1visible_1region) + (JNIEnv *env, jclass that, jintLong arg0) +{ + jintLong rc = 0; + OS_NATIVE_ENTER(env, that, _1gdk_1window_1get_1visible_1region_FUNC); +/* + rc = (jintLong)gdk_window_get_visible_region((GdkWindow *)arg0); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_window_get_visible_region) + if (fp) { + rc = (jintLong)((jintLong (CALLING_CONVENTION*)(GdkWindow *))fp)((GdkWindow *)arg0); + } + } + OS_NATIVE_EXIT(env, that, _1gdk_1window_1get_1visible_1region_FUNC); + return rc; +} +#endif + #ifndef NO__1gdk_1window_1get_1width JNIEXPORT jint JNICALL OS_NATIVE(_1gdk_1window_1get_1width) (JNIEnv *env, jclass that, jintLong arg0) |