Project: SWT
Bug 26421 List hangs on GTK
Reported: 2002-11-14 17:07:04 | Status: resolved fixed

Eclipse 20021113 Using the SWT snippet combo#create a combo box (non-editable), change the line Combo combo = new Combo(..) to CCombo combo = new CCombo(..). Run the application and pull down the combo box. Select one of the entries, the application now hangs. import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; public class Main { public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); Combo combo = new Combo (shell, SWT.READ_ONLY); combo.setItems (new String [] {"A", "B", "C"}); combo.setSize (200, 200); shell.pack (); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java