Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_colordialog_test.c 


Log Message:
- change tabs to spaces (Ewl uses an 8 space indent now instead of a tab)

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/colordialog/ewl_colordialog_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_colordialog_test.c      7 Dec 2007 05:59:15 -0000       1.2
+++ ewl_colordialog_test.c      6 May 2008 20:09:02 -0000       1.3
@@ -1,4 +1,4 @@
-/* vim: set sw=8 ts=8 sts=8 noexpandtab: */
+/* vim: set sw=8 ts=8 sts=8 expandtab: */
 #include "Ewl_Test.h"
 #include "ewl_test_private.h"
 #include "ewl_button.h"
@@ -8,76 +8,76 @@
 static int create_test(Ewl_Container *win);
 static void colordialog_cb_launch(Ewl_Widget *w, void *ev, void *data);
 static void colordialog_cb_value_changed(Ewl_Widget *w, void *ev,
-                                                       void *data);
+                                                       void *data);
 
 void
 test_info(Ewl_Test *test)
 {
-       test->name = "Colordialog";
-       test->tip = "Defines a dialog with a colour picker.";
-       test->filename = __FILE__;
-       test->func = create_test;
-       test->type = EWL_TEST_TYPE_ADVANCED;
+        test->name = "Colordialog";
+        test->tip = "Defines a dialog with a colour picker.";
+        test->filename = __FILE__;
+        test->func = create_test;
+        test->type = EWL_TEST_TYPE_ADVANCED;
 }
 
 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;
+        return 1;
 }
 
 static void
 colordialog_cb_value_changed(Ewl_Widget *w, void *ev, void *data __UNUSED__)
 {
-       Ewl_Event_Action_Response *cd_ev;
+        Ewl_Event_Action_Response *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;
-       unsigned int r, g, b, a;
+        Ewl_Widget *o;
+        unsigned 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_rgba_set(EWL_COLORDIALOG(o), r, g, b, 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_rgba_set(EWL_COLORDIALOG(o), r, g, b, a);
+        ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED,
+                               colordialog_cb_value_changed, NULL);
+        ewl_widget_show(o);
 }
 
 



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to