Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/floater Modified Files: ewl_floater_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/floater/ewl_floater_test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_floater_test.c 4 Dec 2007 05:27:59 -0000 1.1 +++ ewl_floater_test.c 6 May 2008 20:09:03 -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_floater.h" @@ -11,78 +11,78 @@ void test_info(Ewl_Test *test) { - test->name = "Floater"; - test->tip = "Defines a widget for layering above other\n " - "widgets in EWL's drawing area, with\n" - "the ability to follow the movement of\n" - "another widget."; - test->filename = __FILE__; - test->func = create_test; - test->type = EWL_TEST_TYPE_SIMPLE; + test->name = "Floater"; + test->tip = "Defines a widget for layering above other\n " + "widgets in EWL's drawing area, with\n" + "the ability to follow the movement of\n" + "another widget."; + test->filename = __FILE__; + test->func = create_test; + test->type = EWL_TEST_TYPE_SIMPLE; } static int create_test(Ewl_Container *box) { - Ewl_Widget *separator, *button[2], *check_button[2]; - Ewl_Widget *radio_button[2], *floater; + Ewl_Widget *separator, *button[2], *check_button[2]; + Ewl_Widget *radio_button[2], *floater; - radio_button[0] = ewl_radiobutton_new(); - ewl_button_label_set(EWL_BUTTON(radio_button[0]), "With Label"); - ewl_container_child_append(EWL_CONTAINER(box), radio_button[0]); - ewl_object_alignment_set(EWL_OBJECT(radio_button[0]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(radio_button[0]); - - radio_button[1] = ewl_radiobutton_new(); - ewl_button_label_set(EWL_BUTTON(radio_button[1]), NULL); - ewl_radiobutton_chain_set(EWL_RADIOBUTTON(radio_button[1]), - EWL_RADIOBUTTON(radio_button[0])); - ewl_container_child_append(EWL_CONTAINER(box), radio_button[1]); - ewl_object_alignment_set(EWL_OBJECT(radio_button[1]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(radio_button[1]); - - floater = ewl_floater_new(); - ewl_floater_follow_set(EWL_FLOATER(floater), radio_button[1]); - ewl_container_child_append(EWL_CONTAINER(box), floater); - ewl_floater_position_set(EWL_FLOATER(floater), 20, 20); - ewl_widget_show(floater); - - button[0] = ewl_button_new(); - ewl_button_label_set(EWL_BUTTON(button[0]), "With Label"); - ewl_container_child_append(EWL_CONTAINER(floater), button[0]); - ewl_object_alignment_set(EWL_OBJECT(button[0]), EWL_FLAG_ALIGN_LEFT); - ewl_object_custom_size_set(EWL_OBJECT(button[0]), 100, 17); - ewl_widget_show(button[0]); - - button[1] = ewl_button_new(); - ewl_button_label_set(EWL_BUTTON(button[1]), NULL); - ewl_container_child_append(EWL_CONTAINER(floater), button[1]); - ewl_object_alignment_set(EWL_OBJECT(button[1]), EWL_FLAG_ALIGN_LEFT); - ewl_object_custom_size_set(EWL_OBJECT(button[1]), 100, 17); - ewl_widget_show(button[1]); - - separator = ewl_hseparator_new(); - ewl_container_child_append(EWL_CONTAINER(floater), separator); - ewl_widget_show(separator); - - ewl_object_padding_set(EWL_OBJECT(separator), 2, 2, 5, 5); - - check_button[0] = ewl_checkbutton_new(); - ewl_button_label_set(EWL_BUTTON(check_button[0]), "With Label"); - ewl_container_child_append(EWL_CONTAINER(floater), check_button[0]); - ewl_object_alignment_set(EWL_OBJECT(check_button[0]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(check_button[0]); - - check_button[1] = ewl_checkbutton_new(); - ewl_button_label_set(EWL_BUTTON(check_button[1]), NULL); - ewl_container_child_append(EWL_CONTAINER(floater), check_button[1]); - ewl_object_alignment_set(EWL_OBJECT(check_button[1]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(check_button[1]); + radio_button[0] = ewl_radiobutton_new(); + ewl_button_label_set(EWL_BUTTON(radio_button[0]), "With Label"); + ewl_container_child_append(EWL_CONTAINER(box), radio_button[0]); + ewl_object_alignment_set(EWL_OBJECT(radio_button[0]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(radio_button[0]); + + radio_button[1] = ewl_radiobutton_new(); + ewl_button_label_set(EWL_BUTTON(radio_button[1]), NULL); + ewl_radiobutton_chain_set(EWL_RADIOBUTTON(radio_button[1]), + EWL_RADIOBUTTON(radio_button[0])); + ewl_container_child_append(EWL_CONTAINER(box), radio_button[1]); + ewl_object_alignment_set(EWL_OBJECT(radio_button[1]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(radio_button[1]); + + floater = ewl_floater_new(); + ewl_floater_follow_set(EWL_FLOATER(floater), radio_button[1]); + ewl_container_child_append(EWL_CONTAINER(box), floater); + ewl_floater_position_set(EWL_FLOATER(floater), 20, 20); + ewl_widget_show(floater); + + button[0] = ewl_button_new(); + ewl_button_label_set(EWL_BUTTON(button[0]), "With Label"); + ewl_container_child_append(EWL_CONTAINER(floater), button[0]); + ewl_object_alignment_set(EWL_OBJECT(button[0]), EWL_FLAG_ALIGN_LEFT); + ewl_object_custom_size_set(EWL_OBJECT(button[0]), 100, 17); + ewl_widget_show(button[0]); + + button[1] = ewl_button_new(); + ewl_button_label_set(EWL_BUTTON(button[1]), NULL); + ewl_container_child_append(EWL_CONTAINER(floater), button[1]); + ewl_object_alignment_set(EWL_OBJECT(button[1]), EWL_FLAG_ALIGN_LEFT); + ewl_object_custom_size_set(EWL_OBJECT(button[1]), 100, 17); + ewl_widget_show(button[1]); + + separator = ewl_hseparator_new(); + ewl_container_child_append(EWL_CONTAINER(floater), separator); + ewl_widget_show(separator); + + ewl_object_padding_set(EWL_OBJECT(separator), 2, 2, 5, 5); + + check_button[0] = ewl_checkbutton_new(); + ewl_button_label_set(EWL_BUTTON(check_button[0]), "With Label"); + ewl_container_child_append(EWL_CONTAINER(floater), check_button[0]); + ewl_object_alignment_set(EWL_OBJECT(check_button[0]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(check_button[0]); + + check_button[1] = ewl_checkbutton_new(); + ewl_button_label_set(EWL_BUTTON(check_button[1]), NULL); + ewl_container_child_append(EWL_CONTAINER(floater), check_button[1]); + ewl_object_alignment_set(EWL_OBJECT(check_button[1]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(check_button[1]); - 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs