Bug 154732 GraphicsAntialiasingTab fails under both Motif and GTK
When selecting the GraphicsAntialiasingTab, the GraphicsExample application dies. Steps for reproducing: - Check out org.eclipse.swt.examples from CVS - Put the attached file in your workspace under org.eclipse.swt.examples.graphics - Run the graphics example - In the tree, expand "Antialiasing" and select "Graphics" On Motif, the following output is displayed: X connection to :0.0 broken (explicit kill or server shutdown). On GTK, the following output is displayed: The application 'SWT' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicAntialiasTab.java
aliasCombo.add("DEFAULT");
	aliasCombo.add("ON");
	aliasCombo.select(0);
	aliasCombo.addListener(SWT.Selection, new Listener() {
		public void handleEvent(Event event) {
				example.redraw();
		}
	});
	ColorMenu cm = new ColorMenu();
	cm.setColorItems(true);
	menu = cm.createMenu(parent.getParent(), new ColorListener() {
		public void setColor(GraphicsBackground gb) {
			ovalColorGB = gb;
			colorButton.setImage(gb.getThumbNail());
			example.redraw();
		}
	});
	
	
	comp = new Composite(parent, SWT.NONE);
	comp.setLayout(new GridLayout());
	
    
	ovalColorGB = (GraphicsBackground)menu.getItem(4).getData();
	
	
	colorButton = new Button(comp, SWT.PUSH);
	colorButton.setText(GraphicsExample.getResourceString("Color")); 
	colorButton.setImage(ovalColorGB.getThumbNail());
	colorButton.addListener(SWT.Selection, new Listener() {