Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-12-12 15:21:15 +0000
committerEric Williams2018-12-12 18:39:28 +0000
commit255fa872c6469a5eeacee480f8ad37cd246c1f99 (patch)
treecab0336a434e8bf3dad63c736445568f0d0d1205
parent05b13269bdb977f5ed3fad2442c01656d30829b0 (diff)
downloadeclipse.platform.swt-255fa872c6469a5eeacee480f8ad37cd246c1f99.tar.gz
eclipse.platform.swt-255fa872c6469a5eeacee480f8ad37cd246c1f99.tar.xz
eclipse.platform.swt-255fa872c6469a5eeacee480f8ad37cd246c1f99.zip
Bug 540841: [GTK4] Rename GdkWindow to GdkSurface
Fix typo that prevents GTK4 bindings compilation. Change-Id: Ie754dea389350563dfef186dfd9051e0adee4b68 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java4
2 files changed, 4 insertions, 4 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 6c255b2337..1d972c0e01 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
@@ -2142,7 +2142,7 @@ JNIEXPORT void JNICALL GDK_NATIVE(_1gdk_1surface_1get_1root_1origin)
GDK_NATIVE_ENTER(env, that, _1gdk_1surface_1get_1root_1origin_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- gdk_surface_get_root_origin((GdSurface *)arg0, (gint *)lparg1, (gint *)lparg2);
+ gdk_surface_get_root_origin((GdkSurface *)arg0, (gint *)lparg1, (gint *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
@@ -2204,7 +2204,7 @@ JNIEXPORT void JNICALL GDK_NATIVE(_1gdk_1surface_1invalidate_1region)
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
{
GDK_NATIVE_ENTER(env, that, _1gdk_1surface_1invalidate_1region_FUNC);
- gdk_surface_invalidate_region((Gdksurface *)arg0, (const cairo_region_t *)arg1);
+ gdk_surface_invalidate_region((GdkSurface *)arg0, (const cairo_region_t *)arg1);
GDK_NATIVE_EXIT(env, that, _1gdk_1surface_1invalidate_1region_FUNC);
}
#endif
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
index 9037953907..fcbf5dfc28 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
@@ -2255,7 +2255,7 @@ public class GDK extends OS {
}
}
/**
- * @param surface cast=(GdSurface *)
+ * @param surface cast=(GdkSurface *)
* @param x cast=(gint *)
* @param y cast=(gint *)
*/
@@ -2364,7 +2364,7 @@ public class GDK extends OS {
}
}
/**
- * @param surface cast=(Gdksurface *)
+ * @param surface cast=(GdkSurface *)
* @param region cast=(const cairo_region_t *)
*/
public static final native void _gdk_surface_invalidate_region(long /*int*/ surface, long /*int*/ region);

Back to the top