diff options
| author | Alexander Kurtakov | 2012-03-15 21:58:15 +0000 |
|---|---|---|
| committer | Silenio Quarti | 2012-03-19 15:21:07 +0000 |
| commit | fc9e034ed5a5c77bd326ef742e91fb08e09d9c32 (patch) | |
| tree | cf88ffffb8d26f5b3b4c068d568d2d15e4bec25d | |
| parent | 7f0e92a474848114999c959f30c9cf5832b6e8f4 (diff) | |
| download | eclipse.platform.ui-fc9e034ed5a5c77bd326ef742e91fb08e09d9c32.tar.gz eclipse.platform.ui-fc9e034ed5a5c77bd326ef742e91fb08e09d9c32.tar.xz eclipse.platform.ui-fc9e034ed5a5c77bd326ef742e91fb08e09d9c32.zip | |
Remove gdk_gc_set_clip_rectangle.
Nothing uses it and it's deprecated and removed in GTK 3.
4 files changed, 2 insertions, 30 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 38d416a1b59..ce2e0e040eb 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 @@ -5768,19 +5768,6 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1clip_1origin) } #endif -#ifndef NO__1gdk_1gc_1set_1clip_1rectangle -JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1clip_1rectangle) - (JNIEnv *env, jclass that, jintLong arg0, jobject arg1) -{ - GdkRectangle _arg1, *lparg1=NULL; - OS_NATIVE_ENTER(env, that, _1gdk_1gc_1set_1clip_1rectangle_FUNC); - if (arg1) if ((lparg1 = getGdkRectangleFields(env, arg1, &_arg1)) == NULL) goto fail; - gdk_gc_set_clip_rectangle((GdkGC *)arg0, (GdkRectangle *)lparg1); -fail: - OS_NATIVE_EXIT(env, that, _1gdk_1gc_1set_1clip_1rectangle_FUNC); -} -#endif - #ifndef NO__1gdk_1gc_1set_1clip_1region JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1gc_1set_1clip_1region) (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c index 539e3952009..60489341d05 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c @@ -18,8 +18,8 @@ #ifdef NATIVE_STATS -int OS_nativeFunctionCount = 1385; -int OS_nativeFunctionCallCount[1385]; +int OS_nativeFunctionCount = 1384; +int OS_nativeFunctionCallCount[1384]; char * OS_nativeFunctionNames[] = { #ifndef JNI64 "Call__IIII", @@ -478,7 +478,6 @@ char * OS_nativeFunctionNames[] = { "_1gdk_1gc_1set_1background", "_1gdk_1gc_1set_1clip_1mask", "_1gdk_1gc_1set_1clip_1origin", - "_1gdk_1gc_1set_1clip_1rectangle", "_1gdk_1gc_1set_1clip_1region", "_1gdk_1gc_1set_1dashes", "_1gdk_1gc_1set_1exposures", diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h index 51003895a98..54c59f705cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h @@ -486,7 +486,6 @@ typedef enum { _1gdk_1gc_1set_1background_FUNC, _1gdk_1gc_1set_1clip_1mask_FUNC, _1gdk_1gc_1set_1clip_1origin_FUNC, - _1gdk_1gc_1set_1clip_1rectangle_FUNC, _1gdk_1gc_1set_1clip_1region_FUNC, _1gdk_1gc_1set_1dashes_FUNC, _1gdk_1gc_1set_1exposures_FUNC, 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 647a42e0175..84393bd153b 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 @@ -4319,19 +4319,6 @@ public static final void gdk_gc_set_clip_origin(int /*long*/ gc, int x, int y) { } /** * @param gc cast=(GdkGC *) - * @param rectangle cast=(GdkRectangle *),flags=no_out - */ -public static final native void _gdk_gc_set_clip_rectangle(int /*long*/ gc, GdkRectangle rectangle); -public static final void gdk_gc_set_clip_rectangle(int /*long*/ gc, GdkRectangle rectangle) { - lock.lock(); - try { - _gdk_gc_set_clip_rectangle(gc, rectangle); - } finally { - lock.unlock(); - } -} -/** - * @param gc cast=(GdkGC *) * @param region cast=(GdkRegion *) */ public static final native void _gdk_gc_set_clip_region(int /*long*/ gc, int /*long*/ region); |
