From: Enlightenment C. <no...@cv...> - 2006-08-10 23:01:31
|
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/bin Modified Files: main.c Log Message: **API-BREAK** - add ewl_range a new abstract widget to unify the api of seeker, spinner and progressbar - NOTE this breaks colorpicker hopefully for a short time =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- main.c 12 Jul 2006 10:46:01 -0000 1.30 +++ main.c 11 Aug 2006 04:00:57 -0000 1.31 @@ -141,7 +141,7 @@ entries[2] = (val ? "" : buf); ewl_tree_text_row_add(EWL_TREE(tree), NULL, entries); - ewl_progressbar_value_set(EWL_PROGRESSBAR(progress), + ewl_range_value_set(EWL_RANGE(progress), (double)(++current_unit_test)); } else @@ -561,8 +561,8 @@ } progress = ewl_widget_name_find("unit_test_progress"); - ewl_progressbar_range_set(EWL_PROGRESSBAR(progress), (double)(i)); - ewl_progressbar_value_set(EWL_PROGRESSBAR(progress), 0.0); + ewl_range_max_val_set(EWL_RANGE(progress), (double)(i)); + ewl_range_value_set(EWL_RANGE(progress), 0.0); } @@ -585,8 +585,8 @@ ; progress = ewl_widget_name_find("unit_test_progress"); - ewl_progressbar_range_set(EWL_PROGRESSBAR(progress), (double)(i)); - ewl_progressbar_value_set(EWL_PROGRESSBAR(progress), 0.0); + ewl_range_max_val_set(EWL_RANGE(progress), (double)(i)); + ewl_range_value_set(EWL_RANGE(progress), 0.0); if (unit_test_timer) { |