Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-16 16:31:53 +0000
committerAlexander Kurtakov2018-03-16 17:15:14 +0000
commitead936e9af8fb3597aa5274f55f875ed30b13a47 (patch)
tree72e8b9012d1ebff7a40a0497d18ec15b8c29ff8f /bundles/org.eclipse.swt/Eclipse SWT PI/gtk
parent9a589561c65dd1ed2d28e9568a7ed29367850579 (diff)
downloadeclipse.platform.swt-ead936e9af8fb3597aa5274f55f875ed30b13a47.tar.gz
eclipse.platform.swt-ead936e9af8fb3597aa5274f55f875ed30b13a47.tar.xz
eclipse.platform.swt-ead936e9af8fb3597aa5274f55f875ed30b13a47.zip
Bug 518723 - [GTK3] Replace deprecated gtk_widget_send_expose()
It's used only on GTK2 so safe to make it dynamic for now. Change-Id: I3c483d45f777a42259c7f9fdf85a87e9926dea46 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java1
2 files changed, 9 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 be7f14f720..74456e0be1 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
@@ -13949,7 +13949,15 @@ JNIEXPORT jint JNICALL GTK_NATIVE(_1gtk_1widget_1send_1expose)
{
jint rc = 0;
GTK_NATIVE_ENTER(env, that, _1gtk_1widget_1send_1expose_FUNC);
+/*
rc = (jint)gtk_widget_send_expose((GtkWidget *)arg0, (GdkEvent *)arg1);
+*/
+ {
+ GTK_LOAD_FUNCTION(fp, gtk_widget_send_expose)
+ if (fp) {
+ rc = (jint)((jint (CALLING_CONVENTION*)(GtkWidget *, GdkEvent *))fp)((GtkWidget *)arg0, (GdkEvent *)arg1);
+ }
+ }
GTK_NATIVE_EXIT(env, that, _1gtk_1widget_1send_1expose_FUNC);
return rc;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
index 3a8afdde7e..2cddd0a741 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
@@ -9032,6 +9032,7 @@ public class GTK extends OS {
}
/**
+ * @method flags=dynamic
* @param widget cast=(GtkWidget *)
* @param event cast=(GdkEvent *)
*/

Back to the top