Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/test Modified Files: ewl_box_test.c ewl_button_test.c ewl_scrollbar_test.c ewl_scrollpane_test.c ewl_seeker_test.c ewl_spinner_test.c ewl_text_test.c Log Message: Remove some old code that assumed that a window inherited from the box code. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_box_test.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_box_test.c 14 Aug 2002 02:05:37 -0000 1.17 +++ ewl_box_test.c 21 Feb 2003 19:21:07 -0000 1.18 @@ -48,18 +48,18 @@ f = ewl_object_get_fill_policy(EWL_OBJECT(w)); if (f == EWL_FILL_POLICY_NONE) { - ewl_object_set_fill_policy(EWL_OBJECT(w), - EWL_FILL_POLICY_SHRINK); ewl_button_set_label(EWL_BUTTON(w), "Shrink This Box To Fit It's Parent"); - ewl_widget_configure(w->parent); + ewl_object_set_fill_policy(EWL_OBJECT(w), + EWL_FILL_POLICY_SHRINK); } else { - ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FILL_POLICY_NONE); ewl_button_set_label(EWL_BUTTON(w), "Don't shrink this box at all"); - ewl_widget_configure(w->parent); + ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FILL_POLICY_NONE); } + ewl_widget_configure(w->parent); + return; ev_data = NULL; user_data = NULL; @@ -310,7 +310,6 @@ /****************************************************************/ /* Create a box for holding the Shrink test buttons */ - /****************************************************************/ hbox[2] = ewl_hbox_new(); @@ -322,9 +321,9 @@ */ hbox_button[1][0] = ewl_button_new("Shrink This Box To Fit It's Parent"); - ewl_container_append_child(EWL_CONTAINER(hbox[2]), hbox_button[1][0]); ewl_object_set_fill_policy(EWL_OBJECT(hbox_button[1][0]), EWL_FILL_POLICY_SHRINK); + ewl_container_append_child(EWL_CONTAINER(hbox[2]), hbox_button[1][0]); ewl_callback_append(hbox_button[1][0], EWL_CALLBACK_CLICKED, __toggle_child_shrink, NULL); ewl_widget_show(hbox_button[1][0]); @@ -334,9 +333,9 @@ */ hbox_button[1][1] = ewl_button_new("Shrink This Box To Fit It's Parent"); - ewl_container_append_child(EWL_CONTAINER(hbox[2]), hbox_button[1][1]); ewl_object_set_fill_policy(EWL_OBJECT(hbox_button[1][1]), EWL_FILL_POLICY_SHRINK); + ewl_container_append_child(EWL_CONTAINER(hbox[2]), hbox_button[1][1]); ewl_callback_append(hbox_button[1][1], EWL_CALLBACK_CLICKED, __toggle_child_shrink, NULL); ewl_widget_show(hbox_button[1][1]); @@ -345,9 +344,9 @@ * Create and setup a button with no filling by default. */ hbox_button[1][2] = ewl_button_new("Don't shrink this box at all"); - ewl_container_append_child(EWL_CONTAINER(hbox[2]), hbox_button[1][2]); ewl_object_set_fill_policy(EWL_OBJECT(hbox_button[1][2]), EWL_FILL_POLICY_NONE); + ewl_container_append_child(EWL_CONTAINER(hbox[2]), hbox_button[1][2]); ewl_callback_append(hbox_button[1][2], EWL_CALLBACK_CLICKED, __toggle_child_shrink, NULL); ewl_widget_show(hbox_button[1][2]); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_button_test.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_button_test.c 14 Jan 2003 21:45:07 -0000 1.15 +++ ewl_button_test.c 21 Feb 2003 19:21:07 -0000 1.16 @@ -35,7 +35,6 @@ button_win = ewl_window_new(); ewl_window_resize(button_win, 145, 230); ewl_window_set_min_size(button_win, 145, 230); - ewl_box_set_spacing(EWL_BOX(button_win), 10); ewl_callback_append(button_win, EWL_CALLBACK_DELETE_WINDOW, __destroy_button_test_window, NULL); ewl_widget_show(button_win); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_scrollbar_test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_scrollbar_test.c 12 Nov 2001 00:59:52 -0000 1.1 +++ ewl_scrollbar_test.c 21 Feb 2003 19:21:07 -0000 1.2 @@ -32,7 +32,6 @@ scrollbar_button = w; scrollbar_win = ewl_window_new(); - ewl_box_set_spacing(EWL_BOX(scrollbar_win), 10); ewl_callback_append(scrollbar_win, EWL_CALLBACK_DELETE_WINDOW, __destroy_scrollbar_test_window, NULL); ewl_widget_show(scrollbar_win); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_scrollpane_test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_scrollpane_test.c 12 Nov 2001 00:59:52 -0000 1.1 +++ ewl_scrollpane_test.c 21 Feb 2003 19:21:07 -0000 1.2 @@ -34,7 +34,6 @@ scrollpane_button = w; scrollpane_win = ewl_window_new(); - ewl_box_set_spacing(EWL_BOX(scrollpane_win), 10); ewl_callback_append(scrollpane_win, EWL_CALLBACK_DELETE_WINDOW, __destroy_scrollpane_test_window, NULL); ewl_widget_show(scrollpane_win); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_seeker_test.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ewl_seeker_test.c 10 Nov 2001 23:43:48 -0000 1.7 +++ ewl_seeker_test.c 21 Feb 2003 19:21:07 -0000 1.8 @@ -31,7 +31,6 @@ seeker_button = w; seeker_win = ewl_window_new(); - ewl_box_set_spacing(EWL_BOX(seeker_win), 10); ewl_callback_append(seeker_win, EWL_CALLBACK_DELETE_WINDOW, __destroy_seeker_test_window, NULL); ewl_widget_show(seeker_win); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_spinner_test.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- ewl_spinner_test.c 14 Jan 2003 21:45:09 -0000 1.10 +++ ewl_spinner_test.c 21 Feb 2003 19:21:07 -0000 1.11 @@ -101,7 +101,6 @@ spinner_button = w; spinner_win = ewl_window_new(); - ewl_box_set_spacing(EWL_BOX(spinner_win), 10); ewl_window_set_min_size(EWL_WINDOW(spinner_win), 151, 316); ewl_callback_append(spinner_win, EWL_CALLBACK_DELETE_WINDOW, __destroy_spinner_test_window, NULL); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_text_test.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ewl_text_test.c 14 Aug 2002 02:05:37 -0000 1.12 +++ ewl_text_test.c 21 Feb 2003 19:21:07 -0000 1.13 @@ -31,7 +31,6 @@ text_button = w; text_win = ewl_window_new(); - ewl_box_set_spacing(EWL_BOX(text_win), 10); ewl_callback_append(text_win, EWL_CALLBACK_DELETE_WINDOW, __destroy_text_test_window, NULL); ewl_widget_show(text_win); ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs