Change to the linux kernel coding style
[wmaker-crm.git] / WINGs / Examples / colorpick.c
dissimilarity index 78%
index ae1695e..24daa2c 100644 (file)
@@ -1,42 +1,39 @@
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <WINGs/WINGs.h>
-
-
-
-void showSelectedColor(void *self, void *cdata)
-{
-    WMColorPanel *panel= (WMColorPanel*)self;
-
-    printf("Selected Color: %s\n", WMGetColorRGBDescription(WMGetColorPanelColor(panel)));
-}
-
-
-int main(int argc, char **argv)
-{
-    Display *dpy;
-    WMScreen *scr;
-
-    WMInitializeApplication("wmcolorpick", &argc, argv);
-
-    dpy = XOpenDisplay("");
-    if (!dpy) {
-        printf("could not open display\n");
-        exit(1);
-    }
-
-    scr = WMCreateScreen(dpy, DefaultScreen(dpy));
-
-    {
-        WMColorPanel *panel= WMGetColorPanel(scr);
-
-        WMSetColorPanelAction(panel, showSelectedColor, NULL);
-
-        WMShowColorPanel(panel);
-    }
-
-    WMScreenMainLoop(scr);
-
-    return 0;
-}
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <WINGs/WINGs.h>
+
+void showSelectedColor(void *self, void *cdata)
+{
+       WMColorPanel *panel = (WMColorPanel *) self;
+
+       printf("Selected Color: %s\n", WMGetColorRGBDescription(WMGetColorPanelColor(panel)));
+}
+
+int main(int argc, char **argv)
+{
+       Display *dpy;
+       WMScreen *scr;
+
+       WMInitializeApplication("wmcolorpick", &argc, argv);
+
+       dpy = XOpenDisplay("");
+       if (!dpy) {
+               printf("could not open display\n");
+               exit(1);
+       }
+
+       scr = WMCreateScreen(dpy, DefaultScreen(dpy));
+
+       {
+               WMColorPanel *panel = WMGetColorPanel(scr);
+
+               WMSetColorPanelAction(panel, showSelectedColor, NULL);
+
+               WMShowColorPanel(panel);
+       }
+
+       WMScreenMainLoop(scr);
+
+       return 0;
+}