Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/table
Modified Files:
ewl_table_test.c
Log Message:
- change tabs to spaces (Ewl uses 8 space indent now instead of a tab)
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/table/ewl_table_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_table_test.c 4 Dec 2007 05:28:04 -0000 1.1
+++ ewl_table_test.c 6 May 2008 20:18:56 -0000 1.2
@@ -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"
@@ -11,111 +11,111 @@
void
test_info(Ewl_Test *test)
{
- test->name = "Table";
- test->tip = "Defines the Ewl_Table class used for\n"
- "laying out Ewl_Widget's in an array.";
- test->filename = __FILE__;
- test->func = create_test;
- test->type = EWL_TEST_TYPE_CONTAINER;
+ test->name = "Table";
+ test->tip = "Defines the Ewl_Table class used for\n"
+ "laying out Ewl_Widget's in an array.";
+ test->filename = __FILE__;
+ test->func = create_test;
+ test->type = EWL_TEST_TYPE_CONTAINER;
}
static int
create_test(Ewl_Container *box)
{
- Ewl_Widget *table, *button[10];
- char *headers[] = { "One", "Two", "Three", "Four" };
+ Ewl_Widget *table, *button[10];
+ char *headers[] = { "One", "Two", "Three", "Four" };
- table = ewl_table_new(4, 5, headers);
- ewl_container_child_append(box, table);
- ewl_widget_show(table);
-
- button[0] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[0]), "FIRST");
- ewl_table_add(EWL_TABLE(table), button[0], 3, 4, 2, 3);
- ewl_widget_show(button[0]);
+ table = ewl_table_new(4, 5, headers);
+ ewl_container_child_append(box, table);
+ ewl_widget_show(table);
+
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "FIRST");
+ ewl_table_add(EWL_TABLE(table), button[0], 3, 4, 2, 3);
+ ewl_widget_show(button[0]);
#if 0
- button[1] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[1]), NULL);
- ewl_table_attach(EWL_TABLE(table), button[1], 1, 1, 2, 2);
- ewl_object_set_custom_size(EWL_OBJECT(button[1]), 100, 20);
- ewl_object_fill_policy_set(EWL_OBJECT(button[1]),
- EWL_FLAG_FILL_NORMAL);
- ewl_widget_realize(button[1]);
-
- button[2] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[2]), NULL);
- ewl_table_attach(EWL_TABLE(table), button[2], 1, 1, 3, 3);
- ewl_object_set_custom_size(EWL_OBJECT(button[2]), 100, 20);
- ewl_object_fill_policy_set(EWL_OBJECT(button[2]),
- EWL_FLAG_FILL_NORMAL);
- ewl_widget_show(button[2]);
-
-
- button[3] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[3]), NULL);
- ewl_object_set_custom_height(EWL_OBJECT(button[3]), 20);
- ewl_table_attach(EWL_TABLE(table), button[3], 2, 2, 1, 1);
- ewl_widget_show(button[3]);
-
- button[4] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[4]), NULL);
- ewl_object_set_custom_height(EWL_OBJECT(button[4]), 20);
- ewl_table_attach(EWL_TABLE(table), button[4], 2, 2, 2, 2);
- ewl_widget_show(button[4]);
-
- button[5] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[5]), NULL);
- ewl_object_set_custom_height(EWL_OBJECT(button[5]), 20);
- ewl_table_attach(EWL_TABLE(table), button[5], 2, 2, 3, 3);
- ewl_widget_realize(button[5]);
-
- button[6] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[6]), NULL);
- ewl_table_attach(EWL_TABLE(table), button[6], 2, 2, 4, 4);
- ewl_object_set_custom_size(EWL_OBJECT(button[6]), 100, 20);
- ewl_object_fill_policy_set(EWL_OBJECT(button[6]),
- EWL_FLAG_FILL_NORMAL);
- ewl_widget_realize(button[6]);
-
- button[7] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[7]), NULL);
- ewl_table_attach(EWL_TABLE(table), button[7], 3, 3, 4, 4);
- ewl_object_set_custom_size(EWL_OBJECT(button[7]), 100, 20);
- ewl_object_fill_policy_set(EWL_OBJECT(button[7]),
- EWL_FLAG_FILL_NORMAL);
- ewl_widget_realize(button[7]);
-
- button[8] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[8]), NULL);
- ewl_object_set_custom_height(EWL_OBJECT(button[8]), 20);
- ewl_table_attach(EWL_TABLE(table), button[8], 3, 3, 2, 2);
- ewl_widget_realize(button[8]);
-
- button[9] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[9]), NULL);
- ewl_object_set_custom_height(EWL_OBJECT(button[9]), 20);
- ewl_table_attach(EWL_TABLE(table), button[9], 2, 3, 5, 5);
- ewl_widget_realize(button[9]);
-
- button[10] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[10]), NULL);
- ewl_object_set_custom_size(EWL_OBJECT(button[10]), 100, 20);
- ewl_object_fill_policy_set(EWL_OBJECT(button[10]),
- EWL_FLAG_FILL_NORMAL);
- ewl_table_attach(EWL_TABLE(table), button[10], 4, 4, 4, 4);
- ewl_widget_realize(button[10]);
-
- button[11] = ewl_button_new();
- ewl_button_label_set(EWL_BUTTON(button[11]), NULL);
- ewl_object_set_custom_size(EWL_OBJECT(button[11]), 100, 20);
- ewl_object_fill_policy_set(EWL_OBJECT(button[11]),
- EWL_FLAG_FILL_NORMAL);
+ button[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[1]), NULL);
+ ewl_table_attach(EWL_TABLE(table), button[1], 1, 1, 2, 2);
+ ewl_object_set_custom_size(EWL_OBJECT(button[1]), 100, 20);
+ ewl_object_fill_policy_set(EWL_OBJECT(button[1]),
+ EWL_FLAG_FILL_NORMAL);
+ ewl_widget_realize(button[1]);
+
+ button[2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[2]), NULL);
+ ewl_table_attach(EWL_TABLE(table), button[2], 1, 1, 3, 3);
+ ewl_object_set_custom_size(EWL_OBJECT(button[2]), 100, 20);
+ ewl_object_fill_policy_set(EWL_OBJECT(button[2]),
+ EWL_FLAG_FILL_NORMAL);
+ ewl_widget_show(button[2]);
+
+
+ button[3] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[3]), NULL);
+ ewl_object_set_custom_height(EWL_OBJECT(button[3]), 20);
+ ewl_table_attach(EWL_TABLE(table), button[3], 2, 2, 1, 1);
+ ewl_widget_show(button[3]);
+
+ button[4] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[4]), NULL);
+ ewl_object_set_custom_height(EWL_OBJECT(button[4]), 20);
+ ewl_table_attach(EWL_TABLE(table), button[4], 2, 2, 2, 2);
+ ewl_widget_show(button[4]);
+
+ button[5] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[5]), NULL);
+ ewl_object_set_custom_height(EWL_OBJECT(button[5]), 20);
+ ewl_table_attach(EWL_TABLE(table), button[5], 2, 2, 3, 3);
+ ewl_widget_realize(button[5]);
+
+ button[6] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[6]), NULL);
+ ewl_table_attach(EWL_TABLE(table), button[6], 2, 2, 4, 4);
+ ewl_object_set_custom_size(EWL_OBJECT(button[6]), 100, 20);
+ ewl_object_fill_policy_set(EWL_OBJECT(button[6]),
+ EWL_FLAG_FILL_NORMAL);
+ ewl_widget_realize(button[6]);
+
+ button[7] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[7]), NULL);
+ ewl_table_attach(EWL_TABLE(table), button[7], 3, 3, 4, 4);
+ ewl_object_set_custom_size(EWL_OBJECT(button[7]), 100, 20);
+ ewl_object_fill_policy_set(EWL_OBJECT(button[7]),
+ EWL_FLAG_FILL_NORMAL);
+ ewl_widget_realize(button[7]);
+
+ button[8] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[8]), NULL);
+ ewl_object_set_custom_height(EWL_OBJECT(button[8]), 20);
+ ewl_table_attach(EWL_TABLE(table), button[8], 3, 3, 2, 2);
+ ewl_widget_realize(button[8]);
+
+ button[9] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[9]), NULL);
+ ewl_object_set_custom_height(EWL_OBJECT(button[9]), 20);
+ ewl_table_attach(EWL_TABLE(table), button[9], 2, 3, 5, 5);
+ ewl_widget_realize(button[9]);
+
+ button[10] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[10]), NULL);
+ ewl_object_set_custom_size(EWL_OBJECT(button[10]), 100, 20);
+ ewl_object_fill_policy_set(EWL_OBJECT(button[10]),
+ EWL_FLAG_FILL_NORMAL);
+ ewl_table_attach(EWL_TABLE(table), button[10], 4, 4, 4, 4);
+ ewl_widget_realize(button[10]);
+
+ button[11] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[11]), NULL);
+ ewl_object_set_custom_size(EWL_OBJECT(button[11]), 100, 20);
+ ewl_object_fill_policy_set(EWL_OBJECT(button[11]),
+ EWL_FLAG_FILL_NORMAL);
- ewl_table_attach(EWL_TABLE(table), button[11], 4, 4, 5, 5);
- ewl_widget_realize(button[11]);
+ ewl_table_attach(EWL_TABLE(table), button[11], 4, 4, 5, 5);
+ ewl_widget_realize(button[11]);
#endif
- return 1;
+ return 1;
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs