From fc9e034ed5a5c77bd326ef742e91fb08e09d9c32 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Thu, 15 Mar 2012 23:58:15 +0200 Subject: Remove gdk_gc_set_clip_rectangle. Nothing uses it and it's deprecated and removed in GTK 3. --- bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | 13 ------------- .../org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c | 5 ++--- .../org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h | 1 - .../Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java | 13 ------------- 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 38d416a1b5..ce2e0e040e 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 539e395200..60489341d0 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 51003895a9..54c59f705c 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 647a42e017..84393bd153 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 @@ -4317,19 +4317,6 @@ public static final void gdk_gc_set_clip_origin(int /*long*/ gc, int x, int y) { lock.unlock(); } } -/** - * @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 *) -- cgit v1.2.3