rem: int			width, height, x, y; RColor		color = *((RColor *)WMGetListItem(lPtr, index)->clientData); WMScreen		*scr = WMWidgetScreen(lPtr); Display		*dpy = WMScreenDisplay(scr); W_ColorPanel	*panel = WMGetHangedData(lPtr); WMColor		*fillColor;
add: WMScreen *scr = WMWidgetScreen(lPtr); Display *dpy = WMScreenDisplay(scr); WMView *view = W_VIEW(lPtr); RColor color = *((RColor *)WMGetListItem(lPtr, index)->clientData); W_ColorPanel *panel = WMGetHangedData(lPtr); int	width, height, x, y; WMColor *fillColor;
context: colorListPaintItem(WMList *lPtr, int index, Drawable d, char *text, 		   int state, WMRect *rect){    int			width, height, x, y;    RColor		color = *((RColor *)WMGetListItem(lPtr, index)->clientData);    WMScreen		*scr = WMWidgetScreen(lPtr);    Display		*dpy = WMScreenDisplay(scr);    W_ColorPanel	*panel = WMGetHangedData(lPtr);    WMColor		*fillColor;        width = rect->size.width;    height = rect->size.height;    x = rect->pos.x;    y = rect->pos.y;        if (state & WLDSSelected)	WMPaintColorSwatch(scr->white, d, x +15, y, width -15, height);    else	XClearArea(dpy, d, x +15, y, width -15, height, False);        fillColor = WMCreateRGBColor(scr, color.red*256, color.green*256, 				 color.blue*256, False);        WMSetColorInGC(fillColor, WMColorGC(fillColor));    WMPaintColorSwatch(fillColor, d, x, y, 15, 15);    WMReleaseColor(fillColor);        WMDrawString(scr, d, scr->black, panel->font12, x+18, y, text, strlen(text));}