- Fixed name completion problem in file panel.
[wmaker-crm.git] / WINGs / testcolorpanel.c
blob35314e895ff8ebcb9574619eb245a820f89ce438
1 /*
2 * Author: Pascal Hofstee <daeron@shadowmere.student.utwente.nl>
3 */
6 #include "WINGs.h"
8 #include <unistd.h>
9 #include <stdio.h>
11 #include "logo.xpm"
13 void
14 wAbort()
16 exit(1);
19 char *ProgName;
22 int main(int argc, char **argv)
24 Display *dpy = XOpenDisplay("");
25 WMScreen *scr;
26 WMPixmap *pixmap;
27 WMColorPanel *panel;
30 WMInitializeApplication("WMColorPicker", &argc, argv);
32 ProgName = argv[0];
34 if (!dpy) {
35 puts("could not open display");
36 exit(1);
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);
51 return 0;