Skip to content

Commit 32032fb

Browse files
committed
Stop crash of AccessibleObject on GTK 4
GTK 4 port crashes on start up if worspace chooser has to be shown as AccessibleObject is totally disfunctional on GTK 4.x version but later on it tries to send events. Disable it for now.
1 parent cac15c3 commit 32032fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2018 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -4655,6 +4655,7 @@ void selectionChanged () {
46554655
}
46564656

46574657
void sendEvent(int event, Object eventData) {
4658+
if(GTK.GTK4) return; //TODO reenable for GTK 4.x
46584659
switch (event) {
46594660
case ACC.EVENT_SELECTION_CHANGED:
46604661
OS.g_signal_emit_by_name (atkHandle, ATK.selection_changed);

0 commit comments

Comments
 (0)