rem: pixmap = WMCreatePixmapFromXPMData(scr, GNUSTEP_XPM); WMSetApplicationIconImage(scr, pixmap); WMReleasePixmap(pixmap); panel = WMGetColorPanel(scr);
add: if (colorname) { startcolor = WMCreateNamedColor(scr, colorname, False); WMSetColorPanelColor(panel, startcolor); WMReleaseColor(startcolor); }
context: int main(int argc, char **argv){  Display *dpy = XOpenDisplay("");  WMScreen		*scr;  WMPixmap		*pixmap;  WMColorPanel	*panel;#if 0    XSynchronize(dpy, True);    fprintf(stderr, "...Running Synchronous...\n");#endif  WMInitializeApplication("WMColorPicker", &argc, argv);      ProgName = argv[0];  if (!dpy) {    puts("could not open display");    exit(1);  }  scr = WMCreateSimpleApplicationScreen(dpy);  pixmap = WMCreatePixmapFromXPMData(scr, GNUSTEP_XPM);  WMSetApplicationIconImage(scr, pixmap); WMReleasePixmap(pixmap);  panel = WMGetColorPanel(scr);    WMShowColorPanel(panel);  WMScreenMainLoop(scr);  return 0;}