Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-01-12 11:33:06 -0500
committerAlexander Kurtakov2018-01-12 11:34:26 -0500
commit60595256b42cea7469676da1e7054f7ecb82958f (patch)
tree99b85b2dc543bd0d435e2414bb8d3801279b1539
parent8588a05fd9bd3c24685e16fac3de3046f3816a47 (diff)
downloadeclipse.platform.swt-60595256b42cea7469676da1e7054f7ecb82958f.tar.gz
eclipse.platform.swt-60595256b42cea7469676da1e7054f7ecb82958f.tar.xz
eclipse.platform.swt-60595256b42cea7469676da1e7054f7ecb82958f.zip
Bug 529749 - Make gdk_window*_updates methods dynamic
Deprecated and not used for versions newer than 3.16. Change-Id: Icab6bdf687054805dfc1fa0f4233adebfe2aff3e Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c16
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java4
3 files changed, 22 insertions, 0 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 42571c6fa2..526464acbc 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
@@ -6905,7 +6905,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1window_1process_1all_1updates)
(JNIEnv *env, jclass that)
{
OS_NATIVE_ENTER(env, that, _1gdk_1window_1process_1all_1updates_FUNC);
+/*
gdk_window_process_all_updates();
+*/
+ {
+ OS_LOAD_FUNCTION(fp, gdk_window_process_all_updates)
+ if (fp) {
+ ((void (CALLING_CONVENTION*)())fp)();
+ }
+ }
OS_NATIVE_EXIT(env, that, _1gdk_1window_1process_1all_1updates_FUNC);
}
#endif
@@ -6915,7 +6923,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1window_1process_1updates)
(JNIEnv *env, jclass that, jintLong arg0, jboolean arg1)
{
OS_NATIVE_ENTER(env, that, _1gdk_1window_1process_1updates_FUNC);
+/*
gdk_window_process_updates((GdkWindow *)arg0, (gboolean)arg1);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, gdk_window_process_updates)
+ if (fp) {
+ ((void (CALLING_CONVENTION*)(GdkWindow *, gboolean))fp)((GdkWindow *)arg0, (gboolean)arg1);
+ }
+ }
OS_NATIVE_EXIT(env, that, _1gdk_1window_1process_1updates_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 f0808c739c..9a040590de 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
@@ -193,6 +193,8 @@
#define gtk_window_get_opacity_LIB LIB_GTK
#define gdk_window_create_similar_surface_LIB LIB_GDK
#define gdk_window_restack_LIB LIB_GDK
+#define gdk_window_process_all_updates_LIB LIB_GDK
+#define gdk_window_process_updates_LIB LIB_GDK
#define gdk_window_get_device_position_LIB LIB_GDK
#define gdk_window_get_pointer_LIB LIB_GDK
#define gdk_window_at_pointer_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 50215b73c2..1a35dee7c9 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
@@ -5657,6 +5657,9 @@ public static final void gdk_window_lower(long /*int*/ window) {
lock.unlock();
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native void _gdk_window_process_all_updates();
public static final void gdk_window_process_all_updates() {
lock.lock();
@@ -5667,6 +5670,7 @@ public static final void gdk_window_process_all_updates() {
}
}
/**
+ * @method flags=dynamic
* @param window cast=(GdkWindow *)
* @param update_children cast=(gboolean)
*/

Back to the top