data.foreground = foreground; data.background = background;
data.foreground = getForegroundPixel(); data.background = getBackgroundPixel();
public int internal_new_GC (GCData data) {	checkWidget();    /* AW	if (!OS.XtIsRealized (handle)) {		Shell shell = getShell ();		shell.realizeWidget ();	}	int xDisplay = OS.XtDisplay (handle);	if (xDisplay == 0) SWT.error(SWT.ERROR_NO_HANDLES);	int xWindow = OS.XtWindow (handle);	if (xWindow == 0) SWT.error(SWT.ERROR_NO_HANDLES);	int xGC = OS.XCreateGC (xDisplay, xWindow, 0, null);	if (xGC == 0) SWT.error(SWT.ERROR_NO_HANDLES);	OS.XSetGraphicsExposures (xDisplay, xGC, false);	int [] argList = {OS.XmNforeground, 0, OS.XmNbackground, 0, OS.XmNcolormap, 0};	OS.XtGetValues (handle, argList, argList.length / 2);	*/	if (data != null) {		data.device = getDisplay ();		/* AW		data.display = xDisplay;		data.drawable = xWindow;		data.foreground = argList [1];		data.background = argList [3];		data.fontList = fontList;		data.colormap = argList [5];		*/		data.foreground = foreground;		data.background = background;		data.font = font.handle;		data.controlHandle = handle;	}	int wHandle= OS.GetControlOwner(handle);	int xGC= OS.GetWindowPort(wHandle);	if (xGC == 0) SWT.error(SWT.ERROR_NO_HANDLES);	    return xGC;}