Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_paned_test.c 


Log Message:
- tabs are a tricky beast. looks like I missed some.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/paned/ewl_paned_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_paned_test.c    6 May 2008 20:18:55 -0000       1.6
+++ ewl_paned_test.c    7 May 2008 13:38:18 -0000       1.7
@@ -8,7 +8,7 @@
 
 static int create_test(Ewl_Container *box);
 static void ewl_paned_test_cb_clicked_destroy(Ewl_Widget *w, void *ev,
-                                                       void *data);
+                                                        void *data);
 static void ewl_paned_test_cb_clicked(Ewl_Widget *w, void *ev, void *data);
 static void ewl_paned_test_cb_add(Ewl_Widget *w, void *ev, void *data);
 
@@ -21,13 +21,13 @@
 static int fixed_size_unset_get(char *buf, int len);
 
 static Ewl_Unit_Test paned_unit_tests[] = {
-               {"get initial size", initial_size_get, NULL, -1, 0},
-               {"get unset initial size", initial_size_unset_get, NULL, -1, 0},
-               {"get initial size after remove", 
initial_size_after_remove_get, NULL, -1, 0},
-               {"get initial size for many widgets", initial_size_many_get, 
NULL, -1, 0},
-               {"get the fixed size flag", fixed_size_get, NULL, -1, 0},
-               {"get the unset fixed size flag", fixed_size_unset_get, NULL, 
-1, 0},
-               {NULL, NULL, NULL, -1, 0}
+                {"get initial size", initial_size_get, NULL, -1, 0},
+                {"get unset initial size", initial_size_unset_get, NULL, -1, 
0},
+                {"get initial size after remove", 
initial_size_after_remove_get, NULL, -1, 0},
+                {"get initial size for many widgets", initial_size_many_get, 
NULL, -1, 0},
+                {"get the fixed size flag", fixed_size_get, NULL, -1, 0},
+                {"get the unset fixed size flag", fixed_size_unset_get, NULL, 
-1, 0},
+                {NULL, NULL, NULL, -1, 0}
         };
 
 void
@@ -59,25 +59,25 @@
         ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_FILL);
         ewl_container_child_append(EWL_CONTAINER(pane2), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "Fill");
+                        ewl_paned_test_cb_clicked, "Fill");
         ewl_widget_show(o);
 
         o = ewl_button_new();
         ewl_button_label_set(EWL_BUTTON(o), "HFill | VShrink");
         ewl_object_fill_policy_set(EWL_OBJECT(o),
-                       EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
+                        EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
         ewl_container_child_append(EWL_CONTAINER(pane2), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "HFill | VShrink");
+                        ewl_paned_test_cb_clicked, "HFill | VShrink");
         ewl_widget_show(o);
 
         o = ewl_button_new();
         ewl_button_label_set(EWL_BUTTON(o), "HShrink | VFill");
         ewl_object_fill_policy_set(EWL_OBJECT(o),
-                       EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
+                        EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
         ewl_container_child_append(EWL_CONTAINER(pane2), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "HShrink | VFill");
+                        ewl_paned_test_cb_clicked, "HShrink | VFill");
         ewl_widget_show(o);
 
         o = ewl_button_new();
@@ -85,7 +85,7 @@
         ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
         ewl_container_child_append(EWL_CONTAINER(pane2), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "Shrink");
+                        ewl_paned_test_cb_clicked, "Shrink");
         ewl_widget_show(o);
 
         pane3 = ewl_hpaned_new();
@@ -96,10 +96,10 @@
         ewl_button_label_set(EWL_BUTTON(o), "Left Top");
         ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
         ewl_object_alignment_set(EWL_OBJECT(o),
-                               EWL_FLAG_ALIGN_LEFT | EWL_FLAG_ALIGN_TOP);
+                                EWL_FLAG_ALIGN_LEFT | EWL_FLAG_ALIGN_TOP);
         ewl_container_child_append(EWL_CONTAINER(pane3), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "Left Top");
+                        ewl_paned_test_cb_clicked, "Left Top");
         ewl_widget_show(o);
 
         o = ewl_button_new();
@@ -108,23 +108,23 @@
         ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER);
         ewl_container_child_append(EWL_CONTAINER(pane3), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "Center");
+                        ewl_paned_test_cb_clicked, "Center");
         ewl_widget_show(o);
 
         o = ewl_button_new();
         ewl_button_label_set(EWL_BUTTON(o), "Right Bottom");
         ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
         ewl_object_alignment_set(EWL_OBJECT(o),
-                       EWL_FLAG_ALIGN_RIGHT | EWL_FLAG_ALIGN_BOTTOM);
+                        EWL_FLAG_ALIGN_RIGHT | EWL_FLAG_ALIGN_BOTTOM);
         ewl_container_child_append(EWL_CONTAINER(pane3), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked, "Right Bottom");
+                        ewl_paned_test_cb_clicked, "Right Bottom");
         ewl_widget_show(o);
 
         pbox = ewl_hbox_new();
         ewl_container_child_append(EWL_CONTAINER(pane1), pbox);
         ewl_object_fill_policy_set(EWL_OBJECT(pbox),
-                               EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_NONE);
+                                EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_NONE);
         ewl_widget_show(pbox);
 
         o = ewl_button_new();
@@ -144,7 +144,7 @@
 
 static void
 ewl_paned_test_cb_clicked(Ewl_Widget *w, void *ev __UNUSED__,
-                                               void *data)
+                                                void *data)
 {
         printf("Clicked %s\n", (char *)data);
         ewl_widget_hide(w);
@@ -152,7 +152,7 @@
 
 static void
 ewl_paned_test_cb_clicked_destroy(Ewl_Widget *w, void *ev __UNUSED__,
-                                               void *data)
+                                                void *data)
 {
         printf("Destroy Clicked %s\n", (char *)data);
         ewl_widget_destroy(w);
@@ -160,7 +160,7 @@
 
 static void
 ewl_paned_test_cb_add(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
-                                                               void *data)
+                                                                void *data)
 {
         Ewl_Widget *o;
         Ewl_Paned *p;
@@ -172,7 +172,7 @@
         ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
         ewl_container_child_append(EWL_CONTAINER(p), o);
         ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-                       ewl_paned_test_cb_clicked_destroy, "New Button");
+                        ewl_paned_test_cb_clicked_destroy, "New Button");
         ewl_widget_show(o);
 }
 
@@ -192,8 +192,8 @@
         val = ewl_paned_initial_size_get(EWL_PANED(paned), child);
 
         if (val != 240) {
-               LOG_FAILURE(buf, len, "get value is different from the set 
one");
-               ret = 0;
+                LOG_FAILURE(buf, len, "get value is different from the set 
one");
+                ret = 0;
         }
 
         ewl_widget_destroy(paned);
@@ -216,8 +216,8 @@
         val = ewl_paned_initial_size_get(EWL_PANED(paned), child);
 
         if (val != 0) {
-               LOG_FAILURE(buf, len, "get value is not 0");
-               ret = 0;
+                LOG_FAILURE(buf, len, "get value is not 0");
+                ret = 0;
         }
 
         ewl_widget_destroy(paned);
@@ -243,8 +243,8 @@
         val = ewl_paned_initial_size_get(EWL_PANED(paned), child);
 
         if (val != 0) {
-               LOG_FAILURE(buf, len, "get value is not zero");
-               ret = 0;
+                LOG_FAILURE(buf, len, "get value is not zero");
+                ret = 0;
         }
 
         ewl_widget_destroy(child);
@@ -265,20 +265,20 @@
 
         /* build the children and set the initial size for them */
         for (i = 0; i < 4; i++) {
-               w[i] = ewl_cell_new();
-               ewl_container_child_append(EWL_CONTAINER(paned), w[i]);
-               ewl_paned_initial_size_set(EWL_PANED(paned), w[i], 240 + i);
+                w[i] = ewl_cell_new();
+                ewl_container_child_append(EWL_CONTAINER(paned), w[i]);
+                ewl_paned_initial_size_set(EWL_PANED(paned), w[i], 240 + i);
         }
 
         /* now check the set values */
         for (i = 0; i < 4; i++) {
-               int val = ewl_paned_initial_size_get(EWL_PANED(paned), w[i]);
+                int val = ewl_paned_initial_size_get(EWL_PANED(paned), w[i]);
 
-               if (val != 240 + i) {
-                       LOG_FAILURE(buf, len, "get value is not zero");
-                       ret = 0;
-                       break;
-               }
+                if (val != 240 + i) {
+                        LOG_FAILURE(buf, len, "get value is not zero");
+                        ret = 0;
+                        break;
+                }
         }
 
         ewl_widget_destroy(paned);
@@ -302,8 +302,8 @@
         val = ewl_paned_fixed_size_get(EWL_PANED(paned), child);
 
         if (!val) {
-               LOG_FAILURE(buf, len, "get value is different from the set 
one");
-               ret = 0;
+                LOG_FAILURE(buf, len, "get value is different from the set 
one");
+                ret = 0;
         }
 
         ewl_widget_destroy(paned);
@@ -326,8 +326,8 @@
         val = ewl_paned_fixed_size_get(EWL_PANED(paned), child);
 
         if (val) {
-               LOG_FAILURE(buf, len, "get value is not FALSE");
-               ret = 0;
+                LOG_FAILURE(buf, len, "get value is not FALSE");
+                ret = 0;
         }
 
         ewl_widget_destroy(paned);



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