Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/pointer Modified Files: ewl_pointer_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/pointer/ewl_pointer_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_pointer_test.c 16 Jan 2008 21:55:00 -0000 1.2 +++ ewl_pointer_test.c 6 May 2008 20:18:55 -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" @@ -12,42 +12,42 @@ void test_info(Ewl_Test *test) { - test->name = "Pointer"; - test->tip = "Creates a custom cursor from a buffer engine window."; - test->filename = __FILE__; - test->func = create_test; - test->type = EWL_TEST_TYPE_ADVANCED; + test->name = "Pointer"; + test->tip = "Creates a custom cursor from a buffer engine window."; + test->filename = __FILE__; + test->func = create_test; + test->type = EWL_TEST_TYPE_ADVANCED; } static int create_test(Ewl_Container *box) { - Ewl_Widget *pointer_win; - Ewl_Widget *o; - int pos = 0; - - pointer_win = ewl_cursor_new(); - ewl_widget_appearance_set(pointer_win, "dndcursor"); - ewl_widget_show(pointer_win); - - o = ewl_entry_new(); - ewl_attach_mouse_argb_cursor_set(o, pointer_win); - ewl_text_text_set(EWL_TEXT(o), "Expect to see a button cursor\n" - "over this entry and a normal cursor\n" - "over other parts of the window"); - ewl_entry_editable_set(EWL_ENTRY(o), FALSE); - ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE); - ewl_container_child_append(EWL_CONTAINER(box), o); - ewl_widget_show(o); - - pos = EWL_MOUSE_CURSOR_SB_UP_ARROW; - - o = ewl_button_new(); - ewl_attach_mouse_cursor_set(o, pos); - ewl_button_label_set(EWL_BUTTON(o), "Something different here"); - ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE); - ewl_container_child_append(EWL_CONTAINER(box), o); - ewl_widget_show(o); + Ewl_Widget *pointer_win; + Ewl_Widget *o; + int pos = 0; + + pointer_win = ewl_cursor_new(); + ewl_widget_appearance_set(pointer_win, "dndcursor"); + ewl_widget_show(pointer_win); + + o = ewl_entry_new(); + ewl_attach_mouse_argb_cursor_set(o, pointer_win); + ewl_text_text_set(EWL_TEXT(o), "Expect to see a button cursor\n" + "over this entry and a normal cursor\n" + "over other parts of the window"); + ewl_entry_editable_set(EWL_ENTRY(o), FALSE); + ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE); + ewl_container_child_append(EWL_CONTAINER(box), o); + ewl_widget_show(o); + + pos = EWL_MOUSE_CURSOR_SB_UP_ARROW; + + o = ewl_button_new(); + ewl_attach_mouse_cursor_set(o, pos); + ewl_button_label_set(EWL_BUTTON(o), "Something different here"); + ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE); + ewl_container_child_append(EWL_CONTAINER(box), o); + ewl_widget_show(o); - 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