2 * Author: Pascal Hofstee <daeron@shadowmere.student.utwente.nl>
22 int main(int argc
, char **argv
)
24 Display
*dpy
= XOpenDisplay("");
30 WMInitializeApplication("WMColorPicker", &argc
, argv
);
35 puts("could not open display");
39 scr
= WMCreateSimpleApplicationScreen(dpy
);
44 pixmap
= WMCreatePixmapFromXPMData(scr
, GNUSTEP_XPM
);
45 WMSetApplicationIconImage(scr
, pixmap
); WMReleasePixmap(pixmap
);
46 panel
= WMGetColorPanel(scr
);
48 WMShowColorPanel(panel
);
50 WMScreenMainLoop(scr
);