Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/colordialog


Modified Files:
        ewl_colordialog.c 


Log Message:
- formatting

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/colordialog/ewl_colordialog.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_colordialog.c   17 Oct 2006 04:59:53 -0000      1.1
+++ ewl_colordialog.c   6 Dec 2006 20:21:56 -0000       1.2
@@ -20,21 +20,21 @@
 static int
 create_test(Ewl_Container *box)
 {
-        Ewl_Widget *o;
+       Ewl_Widget *o;
 
-        o = calloc(1, sizeof(Ewl_Widget));
-        ewl_widget_init(o);
-        ewl_container_child_append(EWL_CONTAINER(box), o);
-        ewl_object_minimum_size_set(EWL_OBJECT(o), 150, 20);
-        ewl_widget_name_set(o, "colour_preview");
-        ewl_widget_color_set(o, 255, 255, 255, 255);
-        ewl_widget_show(o);
-
-        o = ewl_button_new();
-        ewl_container_child_append(EWL_CONTAINER(box), o);
-        ewl_button_label_set(EWL_BUTTON(o), "Launch Colour Dialog");
-        ewl_callback_append(o, EWL_CALLBACK_CLICKED, colordialog_cb_launch, 
NULL);
-        ewl_widget_show(o);
+       o = calloc(1, sizeof(Ewl_Widget));
+       ewl_widget_init(o);
+       ewl_container_child_append(EWL_CONTAINER(box), o);
+       ewl_object_minimum_size_set(EWL_OBJECT(o), 150, 20);
+       ewl_widget_name_set(o, "colour_preview");
+       ewl_widget_color_set(o, 255, 255, 255, 255);
+       ewl_widget_show(o);
+
+       o = ewl_button_new();
+       ewl_container_child_append(EWL_CONTAINER(box), o);
+       ewl_button_label_set(EWL_BUTTON(o), "Launch Colour Dialog");
+       ewl_callback_append(o, EWL_CALLBACK_CLICKED, colordialog_cb_launch, 
NULL);
+       ewl_widget_show(o);
 
        return 1;
 }
@@ -42,40 +42,40 @@
 static void
 colordialog_cb_value_changed(Ewl_Widget *w, void *ev, void *data __UNUSED__)
 {
-        Ewl_Dialog_Event *cd_ev;
+       Ewl_Dialog_Event *cd_ev;
 
-        cd_ev = ev;
-        if (cd_ev->response == EWL_STOCK_OK)
-        {
-                Ewl_Widget *o;
-                unsigned int r, g, b, a;
-
-                o = ewl_widget_name_find("colour_preview");
-
-                ewl_colordialog_current_rgb_get(EWL_COLORDIALOG(w), &r, &g, 
&b);
-                a = ewl_colordialog_alpha_get(EWL_COLORDIALOG(w));
-
-                ewl_widget_color_set(o, r, g, b, a);
-        }
-        ewl_widget_destroy(w);
+       cd_ev = ev;
+       if (cd_ev->response == EWL_STOCK_OK)
+       {
+               Ewl_Widget *o;
+               unsigned int r, g, b, a;
+
+               o = ewl_widget_name_find("colour_preview");
+
+               ewl_colordialog_current_rgb_get(EWL_COLORDIALOG(w), &r, &g, &b);
+               a = ewl_colordialog_alpha_get(EWL_COLORDIALOG(w));
+
+               ewl_widget_color_set(o, r, g, b, a);
+       }
+       ewl_widget_destroy(w);
 }
 
 static void
 colordialog_cb_launch(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
-                                        void *data __UNUSED__)
+                                       void *data __UNUSED__)
 {
-        Ewl_Widget *o;
-        int r, g, b, a;
+       Ewl_Widget *o;
+       int r, g, b, a;
 
-        o = ewl_widget_name_find("colour_preview");
-        ewl_widget_color_get(o, &r, &g, &b, &a);
+       o = ewl_widget_name_find("colour_preview");
+       ewl_widget_color_get(o, &r, &g, &b, &a);
 
-        o = ewl_colordialog_new();
-        ewl_colordialog_previous_rgb_set(EWL_COLORDIALOG(o), r, g, b);
-        ewl_colordialog_alpha_set(EWL_COLORDIALOG(o), a);
-        ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED,
-                                colordialog_cb_value_changed, NULL);
-        ewl_widget_show(o);
+       o = ewl_colordialog_new();
+       ewl_colordialog_previous_rgb_set(EWL_COLORDIALOG(o), r, g, b);
+       ewl_colordialog_alpha_set(EWL_COLORDIALOG(o), a);
+       ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED,
+                               colordialog_cb_value_changed, NULL);
+       ewl_widget_show(o);
 }
 
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to