From: <enl...@li...> - 2001-11-14 00:30:46
|
Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl Dir : e17/libs/ewl/test Modified Files: ewl_spinner_test.c ewl_textarea_test.c Log Message: * Changed the fx API slightly to simplify the job of calculating intervals between frames, and reduce the number of steps for the calculation. * Setup a config option for the user to put a bound on the frames per second for fx. This should be useful for slower machines when running apps with lots of widgets displayed. * Added more documenting comments, but haven't added sections to the manual.raw yet. * Added window geometry functions since the standard object geometries don't work well with windows. * Fixed the spinner test to use the new window geometry functions. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_spinner_test.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_spinner_test.c 2001/10/22 22:17:22 1.5 +++ ewl_spinner_test.c 2001/11/14 00:30:16 1.6 @@ -57,7 +57,7 @@ { int xx, yy, ww, hh; - ewl_object_get_current_geometry(EWL_OBJECT(tmp_win), &xx, &yy, &ww, + ewl_window_get_geometry(EWL_OBJECT(tmp_win), &xx, &yy, &ww, &hh); ewl_callback_del(spinner[0], EWL_CALLBACK_VALUE_CHANGED, =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_textarea_test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_textarea_test.c 2001/11/12 19:41:00 1.1 +++ ewl_textarea_test.c 2001/11/14 00:30:16 1.2 @@ -1,5 +1,15 @@ #include <Ewl.h> +static char *long_text = "This is a long string to test\n" + "the effectiveness of\n" + "the new text area.\n" + "It's possible that it contains\n" + "unprintable characters such\n" + "as or extremely long\n" + "lines. Beware, it may\n" + "trigger bugs in etox or\n" + "ewl\nso\ntrace\ncarefully."; + static Ewl_Widget *textarea_button; void __create_textarea_test_window(Ewl_Widget * w, void *ev_data, @@ -37,7 +47,7 @@ ewl_widget_show(textarea_win); textarea = ewl_textarea_new(); - ewl_textarea_set_text(EWL_TEXTAREA(textarea), "Test! =)"); + ewl_textarea_set_text(EWL_TEXTAREA(textarea), long_text); ewl_object_set_padding(EWL_OBJECT(textarea), 10, 10, 10, 10); ewl_container_append_child(EWL_CONTAINER(textarea_win), textarea); ewl_widget_show(textarea); |