Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul D'Pong2020-10-01 15:40:37 +0000
committerAlexander Kurtakov2020-10-05 05:58:59 +0000
commit8526f4dda5d8e21407086e0bd246b545f968831c (patch)
tree04f1a8796c772b1b5ce88383864ad275924952d0
parent16e80457f907af9dff008e79a89e5286ec3ae7dd (diff)
downloadeclipse.platform.swt-8526f4dda5d8e21407086e0bd246b545f968831c.tar.gz
eclipse.platform.swt-8526f4dda5d8e21407086e0bd246b545f968831c.tar.xz
eclipse.platform.swt-8526f4dda5d8e21407086e0bd246b545f968831c.zip
Bug 567257 - [GTK4] Get SWT Text snippets running
- Removed use of gtk_get_current_event in verifyText (allows for Snippet 19 to run) Change-Id: Ia7f1b2d7f9c79294a989830caaec1bee74b52c33 Signed-off-by: Paul D'Pong <sdamrong@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index 7547e00281..a18b88c68a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -2827,7 +2827,7 @@ String verifyText (String string, int start, int end) {
event.text = string;
event.start = start;
event.end = end;
- long eventPtr = GTK.gtk_get_current_event ();
+ long eventPtr = GTK.GTK4 ? 0 : GTK.gtk_get_current_event();
if (eventPtr != 0) {
int type = GDK.gdk_event_get_event_type(eventPtr);
type = fixGdkEventTypeValues(type);

Back to the top