Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_histogram_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/histogram/ewl_histogram_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_histogram_test.c        6 Dec 2007 06:58:10 -0000       1.2
+++ ewl_histogram_test.c        6 May 2008 20:09:04 -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_overlay.h"
@@ -13,77 +13,77 @@
 void
 test_info(Ewl_Test *test)
 {
-       test->name = "Histogram";
-       test->tip = "Defines an image histogram.";
-       test->filename = __FILE__;
-       test->func = create_test;
-       test->type = EWL_TEST_TYPE_SIMPLE;
+        test->name = "Histogram";
+        test->tip = "Defines an image histogram.";
+        test->filename = __FILE__;
+        test->func = create_test;
+        test->type = EWL_TEST_TYPE_SIMPLE;
 }
 
 static int
 create_test(Ewl_Container *box)
 {
-       Ewl_Widget *overlay;
-       Ewl_Widget *img;
-       Ewl_Widget *hist;
-
-       overlay = ewl_overlay_new();
-       ewl_container_child_append(EWL_CONTAINER(box), overlay);
-       ewl_object_fill_policy_set(EWL_OBJECT(overlay), EWL_FLAG_FILL_ALL);
-       ewl_callback_append(EWL_WIDGET(overlay), EWL_CALLBACK_CONFIGURE,
-                       ewl_histogram_test_cb_configure, NULL);
-       ewl_widget_show(overlay);
-
-       img = ewl_image_new();
-       ewl_image_file_path_set(EWL_IMAGE(img),
-                       PACKAGE_DATA_DIR "/ewl/images/entrance.png");
-       ewl_image_proportional_set(EWL_IMAGE(img), TRUE);
-       ewl_container_child_append(EWL_CONTAINER(overlay), img);
-       ewl_object_fill_policy_set(EWL_OBJECT(img), EWL_FLAG_FILL_ALL);
-       ewl_widget_show(img);
-
-       hist = ewl_histogram_new();
-       ewl_histogram_channel_set(EWL_HISTOGRAM(hist), EWL_HISTOGRAM_CHANNEL_Y);
-       ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
-       ewl_container_child_append(EWL_CONTAINER(overlay), hist);
-       ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
-       ewl_widget_show(hist);
-
-       hist = ewl_histogram_new();
-       ewl_histogram_channel_set(EWL_HISTOGRAM(hist), EWL_HISTOGRAM_CHANNEL_R);
-       ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
-       ewl_container_child_append(EWL_CONTAINER(overlay), hist);
-       ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
-       ewl_widget_show(hist);
-
-       hist = ewl_histogram_new();
-       ewl_histogram_channel_set(EWL_HISTOGRAM(hist), EWL_HISTOGRAM_CHANNEL_G);
-       ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
-       ewl_container_child_append(EWL_CONTAINER(overlay), hist);
-       ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
-       ewl_widget_show(hist);
-
-       hist = ewl_histogram_new();
-       ewl_histogram_channel_set(EWL_HISTOGRAM(hist), EWL_HISTOGRAM_CHANNEL_B);
-       ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
-       ewl_container_child_append(EWL_CONTAINER(overlay), hist);
-       ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
-       ewl_widget_show(hist);
+        Ewl_Widget *overlay;
+        Ewl_Widget *img;
+        Ewl_Widget *hist;
+
+        overlay = ewl_overlay_new();
+        ewl_container_child_append(EWL_CONTAINER(box), overlay);
+        ewl_object_fill_policy_set(EWL_OBJECT(overlay), EWL_FLAG_FILL_ALL);
+         ewl_callback_append(EWL_WIDGET(overlay), EWL_CALLBACK_CONFIGURE,
+                       ewl_histogram_test_cb_configure, NULL);
+        ewl_widget_show(overlay);
+
+        img = ewl_image_new();
+        ewl_image_file_path_set(EWL_IMAGE(img),
+                       PACKAGE_DATA_DIR "/ewl/images/entrance.png");
+        ewl_image_proportional_set(EWL_IMAGE(img), TRUE);
+        ewl_container_child_append(EWL_CONTAINER(overlay), img);
+        ewl_object_fill_policy_set(EWL_OBJECT(img), EWL_FLAG_FILL_ALL);
+        ewl_widget_show(img);
+
+        hist = ewl_histogram_new();
+        ewl_histogram_channel_set(EWL_HISTOGRAM(hist), 
EWL_HISTOGRAM_CHANNEL_Y);
+        ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
+        ewl_container_child_append(EWL_CONTAINER(overlay), hist);
+        ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
+        ewl_widget_show(hist);
+
+        hist = ewl_histogram_new();
+        ewl_histogram_channel_set(EWL_HISTOGRAM(hist), 
EWL_HISTOGRAM_CHANNEL_R);
+        ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
+        ewl_container_child_append(EWL_CONTAINER(overlay), hist);
+        ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
+        ewl_widget_show(hist);
+
+        hist = ewl_histogram_new();
+        ewl_histogram_channel_set(EWL_HISTOGRAM(hist), 
EWL_HISTOGRAM_CHANNEL_G);
+        ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
+        ewl_container_child_append(EWL_CONTAINER(overlay), hist);
+        ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
+        ewl_widget_show(hist);
+
+        hist = ewl_histogram_new();
+        ewl_histogram_channel_set(EWL_HISTOGRAM(hist), 
EWL_HISTOGRAM_CHANNEL_B);
+        ewl_histogram_image_set(EWL_HISTOGRAM(hist), EWL_IMAGE(img));
+        ewl_container_child_append(EWL_CONTAINER(overlay), hist);
+        ewl_object_fill_policy_set(EWL_OBJECT(hist), EWL_FLAG_FILL_ALL);
+        ewl_widget_show(hist);
 
-       return 1;
+        return 1;
 }
 
 static void
 ewl_histogram_test_cb_configure(Ewl_Widget *w, void *event __UNUSED__,
-                                               void *data __UNUSED__)
+                                               void *data __UNUSED__)
 {
-       Ewl_Widget *child;
-       Ewl_Container *c = EWL_CONTAINER(w);
+        Ewl_Widget *child;
+        Ewl_Container *c = EWL_CONTAINER(w);
 
-       ewl_container_child_iterate_begin(c);
-       while ((child = ewl_container_child_next(c))) {
-               ewl_object_place(EWL_OBJECT(child), CURRENT_X(c), CURRENT_Y(c),
-                               CURRENT_W(c), CURRENT_H(c));
-       }
+        ewl_container_child_iterate_begin(c);
+        while ((child = ewl_container_child_next(c))) {
+               ewl_object_place(EWL_OBJECT(child), CURRENT_X(c), CURRENT_Y(c),
+                               CURRENT_W(c), CURRENT_H(c));
+        }
 }
 



-------------------------------------------------------------------------
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