E CVS: apps/e devilhorns
Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e Dir : e17/apps/e/src/modules/temperature Modified Files: e_mod_main.c Log Message: more evas_hash_foreach fixes. add __UNUSED__ where needed. === RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -3 -r1.91 -r1.92 --- e_mod_main.c6 Feb 2008 00:13:25 - 1.91 +++ e_mod_main.c12 Feb 2008 06:14:27 - 1.92 @@ -43,8 +43,8 @@ static void _temperature_face_level_set(Config_Face *inst, double level); static void _temperature_face_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi); -static Evas_Bool _temperature_face_shutdown(Evas_Hash *hash, const char *key, void *hdata, void *fdata); -static Evas_Bool _temperature_face_id_max(Evas_Hash *hash, const char *key, void *hdata, void *fdata); +static Evas_Bool _temperature_face_shutdown(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *hdata, void *fdata __UNUSED__); +static Evas_Bool _temperature_face_id_max(const Evas_Hash *hash __UNUSED__, const char *key, void *hdata __UNUSED__, void *fdata); static E_Config_DD *conf_edd = NULL; static E_Config_DD *conf_face_edd = NULL; @@ -360,7 +360,7 @@ } static Evas_Bool -_temperature_face_shutdown(Evas_Hash *hash, const char *key, void *hdata, void *fdata) +_temperature_face_shutdown(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *hdata, void *fdata __UNUSED__) { Config_Face *inst; @@ -373,11 +373,11 @@ } static Evas_Bool -_temperature_face_id_max(Evas_Hash *hash, const char *key, void *hdata, void *fdata) +_temperature_face_id_max(const Evas_Hash *hash __UNUSED__, const char *key, void *hdata __UNUSED__, void *fdata) { const char *p; - int*max; - int num = -1; + int *max; + int num = -1; max = fdata; p = strrchr(key, '.'); - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e devilhorns
Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e Dir : e17/apps/e/src/modules/conf_imc Modified Files: e_int_config_imc.c Log Message: more evas_hash_foreach fixes. add __UNUSED__ where needed. === RCS file: /cvs/e/e17/apps/e/src/modules/conf_imc/e_int_config_imc.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- e_int_config_imc.c 7 Oct 2007 21:22:40 - 1.4 +++ e_int_config_imc.c 12 Feb 2008 06:11:22 - 1.5 @@ -36,8 +36,8 @@ static void _e_imc_entry_change_cb (void *data, Evas_Object *obj); static void_e_imc_form_fill (E_Config_Dialog_Data *cfdata); static const char* _e_imc_file_name_new_get (void); -static Evas_Bool_change_hash_free_cb (Evas_Hash *hash, const char *key, void *data, void *fdata); -static Evas_Bool_change_hash_apply_cb(Evas_Hash *hash, const char *key, void *data, void *fdata); +static Evas_Bool_change_hash_free_cb (const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__); +static Evas_Bool_change_hash_apply_cb(const Evas_Hash *hash __UNUSED__, const char *key, void *data, void *fdata __UNUSED__); struct _E_Config_Dialog_Data { @@ -143,7 +143,7 @@ } static Evas_Bool -_change_hash_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_change_hash_free_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__) { E_Input_Method_Config *imc; @@ -385,7 +385,7 @@ /*** Start Advanced Dialog Logic ***/ static Evas_Bool -_change_hash_apply_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_change_hash_apply_cb(const Evas_Hash *hash __UNUSED__, const char *key, void *data, void *fdata __UNUSED__) { E_Input_Method_Config *imc; Eet_File *ef; - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e devilhorns
Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e Dir : e17/apps/e/src/modules/conf_intl Modified Files: e_int_config_intl.c Log Message: more evas_hash_foreach fixes. Add __UNUSED__ where appropriate. Fix some formatting. === RCS file: /cvs/e/e17/apps/e/src/modules/conf_intl/e_int_config_intl.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_int_config_intl.c 23 Nov 2007 10:11:53 - 1.7 +++ e_int_config_intl.c 12 Feb 2008 06:09:05 - 1.8 @@ -28,10 +28,10 @@ /* Fill the clear lists, fill with language, select */ /* Update lanague */ static void _cfdata_language_go(const char *lang, const char *region, const char *codeset, const char *modifier, E_Config_Dialog_Data *cfdata); -static Evas_Bool _lang_hash_cb (Evas_Hash *hash, const char *key, void *data, void *fdata); -static Evas_Bool _region_hash_cb(Evas_Hash *hash, const char *key, void *data, void *fdata); -static Evas_Bool _language_hash_free_cb (Evas_Hash *hash, const char *key, void *data, void *fdata); -static Evas_Bool _region_hash_free_cb (Evas_Hash *hash, const char *key, void *data, void *fdata); +static Evas_Bool _lang_hash_cb (const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata); +static Evas_Bool _region_hash_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata); +static Evas_Bool _language_hash_free_cb (const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__); +static Evas_Bool _region_hash_free_cb (const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__); static void _intl_current_locale_setup (E_Config_Dialog_Data *cfdata); static const char *_intl_charset_upper_get (const char *charset); @@ -809,7 +809,7 @@ } static Evas_Bool -_language_hash_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_language_hash_free_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__) { E_Intl_Language_Node *node; @@ -823,7 +823,7 @@ } static Evas_Bool -_region_hash_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_region_hash_free_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata __UNUSED__) { E_Intl_Region_Node *node; @@ -835,7 +835,8 @@ str = node->available_codesets->data; if (str) evas_stringshare_del(str); - node->available_codesets = evas_list_remove_list(node->available_codesets, node->available_codesets); + node->available_codesets = + evas_list_remove_list(node->available_codesets, node->available_codesets); } while (node->available_modifiers) @@ -844,7 +845,8 @@ str = node->available_modifiers->data; if (str) evas_stringshare_del(str); - node->available_modifiers = evas_list_remove_list(node->available_modifiers, node->available_modifiers); + node->available_modifiers = + evas_list_remove_list(node->available_modifiers, node->available_modifiers); } free(node); @@ -978,9 +980,9 @@ if (cfdata->lang_list) { - cfdata->lang_list = evas_list_sort(cfdata->lang_list, - evas_list_count(cfdata->lang_list), - _lang_list_sort); + cfdata->lang_list = + evas_list_sort(cfdata->lang_list, evas_list_count(cfdata->lang_list), + _lang_list_sort); _lang_list_load(cfdata); } @@ -1170,12 +1172,13 @@ if (lang_update) { e_widget_ilist_clear(cfdata->gui.reg_list); - cfdata->region_list = evas_list_free(cfdata->region_list); - evas_hash_foreach(lang_node->region_hash, _region_hash_cb, cfdata); - cfdata->region_list = evas_list_sort(cfdata->region_list, - evas_list_count(cfdata->region_list), -_region_list_sort); + evas_hash_foreach(lang_node->region_hash, +_region_hash_cb, cfdata); + cfdata->region_list = +evas_list_sort(cfdata->region_list, + evas_list_count(cfdata->region_list), + _region_list_sort); _region_list_load(cfdata); } @@ -1234,7 +1237,7 @@ } static Evas_Bool -_lang_hash_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_lang_hash_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUS
E CVS: apps/e devilhorns
Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e Dir : e17/apps/e/src/modules/conf_fonts Modified Files: e_int_config_fonts.c Log Message: fixes for recent evas_hash changes. actual add func proto for the evas_hash_foreach callback function. === RCS file: /cvs/e/e17/apps/e/src/modules/conf_fonts/e_int_config_fonts.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- e_int_config_fonts.c5 Dec 2007 02:08:54 - 1.5 +++ e_int_config_fonts.c12 Feb 2008 06:02:17 - 1.6 @@ -31,6 +31,8 @@ static void _class_list_load(E_Config_Dialog_Data *cfdata); static void _font_preview_update(E_Config_Dialog_Data *cfdata); +static Evas_Bool _font_hash_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata); + struct _E_Font_Size_Data { E_Config_Dialog_Data *cfdata; @@ -415,7 +417,7 @@ } static Evas_Bool -_font_hash_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) +_font_hash_cb(const Evas_Hash *hash __UNUSED__, const char *key __UNUSED__, void *data, void *fdata) { E_Config_Dialog_Data *cfdata; E_Font_Properties *efp; - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e devilhorns
Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e Dir : e17/apps/e/src/modules/fileman Modified Files: e_fwin.c Log Message: fix evas_hash_foreach function for recent Evas changes. fix some formatting. === RCS file: /cvs/e/e17/apps/e/src/modules/fileman/e_fwin.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- e_fwin.c22 Dec 2007 00:20:53 - 1.23 +++ e_fwin.c12 Feb 2008 05:59:01 - 1.24 @@ -87,7 +87,7 @@ static void _e_fwin_cb_open(void *data, E_Dialog *dia); static void _e_fwin_cb_close(void *data, E_Dialog *dia); static void _e_fwin_cb_dialog_free(void *obj); -static Evas_Bool _e_fwin_cb_hash_foreach(Evas_Hash *hash, const char *key, void *data, void *fdata); +static Evas_Bool _e_fwin_cb_hash_foreach(const Evas_Hash *hash __UNUSED__, const char *key, void *data __UNUSED__, void *fdata); static E_Fwin_Exec_Type _e_fwin_file_is_exec(E_Fm2_Icon_Info *ici); static void _e_fwin_file_exec(E_Fwin *fwin, E_Fm2_Icon_Info *ici, E_Fwin_Exec_Type ext); static void _e_fwin_file_open_dialog(E_Fwin *fwin, Evas_List *files, int always); @@ -154,12 +154,12 @@ fwin->zone = zone; /* Add Event Handler for zone move/resize & del */ - fwin->zone_handler = ecore_event_handler_add(E_EVENT_ZONE_MOVE_RESIZE, - _e_fwin_zone_move_resize, - fwin); - fwin->zone_del_handler = ecore_event_handler_add(E_EVENT_ZONE_DEL, - _e_fwin_zone_del, - fwin); + fwin->zone_handler = + ecore_event_handler_add(E_EVENT_ZONE_MOVE_RESIZE, + _e_fwin_zone_move_resize, fwin); + fwin->zone_del_handler = + ecore_event_handler_add(E_EVENT_ZONE_DEL, + _e_fwin_zone_del, fwin); /* Trap the mouse_down on zone so we can unselect */ evas_object_event_callback_add(zone->bg_event_object, @@ -295,7 +295,7 @@ else { char buf[256]; - + if (fileman_config->view.show_desktop_icons) { snprintf(buf, sizeof(buf), "%i", @@ -877,7 +877,7 @@ } static Evas_Bool -_e_fwin_cb_hash_foreach(Evas_Hash *hash, const char *key, void *data, void *fdata) +_e_fwin_cb_hash_foreach(const Evas_Hash *hash __UNUSED__, const char *key, void *data __UNUSED__, void *fdata) { Evas_List **mlist; - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ecore pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_con Modified Files: Ecore_Con.h ecore_con_url.c Log Message: add doxy stubs, so that the function names at least appear in the api references Thanks to mcalamelli === RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_con/Ecore_Con.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- Ecore_Con.h 8 Jan 2008 21:28:51 - 1.34 +++ Ecore_Con.h 11 Feb 2008 23:24:11 - 1.35 @@ -58,6 +58,7 @@ * @li @ref Ecore_Con_Lib_Group * @li @ref Ecore_Con_Server_Group * @li @ref Ecore_Con_Client_Group + * @li @ref Ecore_Con_Url_Group */ #ifdef __cplusplus === RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_con/ecore_con_url.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ecore_con_url.c 26 Sep 2007 17:18:52 - 1.16 +++ ecore_con_url.c 11 Feb 2008 23:24:11 - 1.17 @@ -40,6 +40,14 @@ #include "Ecore_Con.h" #include "ecore_con_private.h" +/** + * @defgroup Ecore_Con_Url_Group Ecore URL Connection Functions + * + * Utility functions that set up, use and shut down the Ecore URL + * Connection library. + * FIXME: write detailed description + */ + #ifdef HAVE_CURL static int _ecore_con_url_fd_handler(void *data, Ecore_Fd_Handler *fd_handler); static int _ecore_con_url_perform(Ecore_Con_Url *url_con); @@ -92,6 +100,12 @@ #endif +/** + * Initialises the Ecore_Con_Url library. + * @return Number of times the library has been initialised without being + * shut down. + * @ingroup Ecore_Con_Url_Group + */ EAPI int ecore_con_url_init(void) { @@ -135,6 +149,11 @@ #endif } +/** + * Shuts down the Ecore_Con_Url library. + * @return Number of calls that still uses Ecore_Con_Url + * @ingroup Ecore_Con_Url_Group + */ EAPI int ecore_con_url_shutdown(void) { @@ -169,6 +188,11 @@ return 1; } +/** + * Creates and initializes a new Ecore_Con_Url. + * @return NULL on error, a new Ecore_Con_Url on success. + * @ingroup Ecore_Con_Url_Group + */ EAPI Ecore_Con_Url * ecore_con_url_new(const char *url) { @@ -213,6 +237,11 @@ #endif } +/** + * Frees the Ecore_Con_Url. + * @return FIXME: To be documented. + * @ingroup Ecore_Con_Url_Group + */ EAPI void ecore_con_url_destroy(Ecore_Con_Url *url_con) { @@ -242,6 +271,11 @@ #endif } +/** + * FIXME: To be documented. + * @return FIXME: To be documented. + * @ingroup Ecore_Con_Url_Group + */ EAPI int ecore_con_url_url_set(Ecore_Con_Url *url_con, const char *url) { @@ -267,6 +301,11 @@ #endif } +/** + * FIXME: To be documented. + * @return FIXME: To be documented. + * @ingroup Ecore_Con_Url_Group + */ EAPI void ecore_con_url_data_set(Ecore_Con_Url *url_con, void *data) { @@ -285,6 +324,11 @@ #endif } +/** + * FIXME: To be documented. + * @return FIXME: To be documented. + * @ingroup Ecore_Con_Url_Group + */ EAPI void * ecore_con_url_data_get(Ecore_Con_Url *url_con) { @@ -302,6 +346,11 @@ #endif } +/** + * FIXME: To be documented. + * @return FIXME: To be documented. + * @ingroup Ecore_Con_Url_Group + */ EAPI void ecore_con_url_time(Ecore_Con_Url *url_con, Ecore_Con_Url_Time condition, time_t tm) { @@ -322,6 +371,11 @@ #endif } +/** + * FIXME: To be documented. + * @return FIXME: To be documented. + * @ingroup Ecore_Con_Url_Group + */ EAPI int ecore_con_url_send(Ecore_Con_Url *url_con, void *data, size_t length, char *content_type) { @@ -556,6 +610,7 @@ } return job_matched; } + static void _ecore_con_event_url_free(void *data __UNUSED__, void *ev) { - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e barbieri
Enlightenment CVS committal Author : barbieri Project : e17 Module : apps/e Dir : e17/apps/e/src/modules/conf_mousebindings Modified Files: e_int_config_mousebindings.c Log Message: Fix mouse bindings dialog. Thanks to jcwong to report and lok to help finding the solution. Weird is that it's broken for more than 6 months (last change from history is raster moving it to module). === RCS file: /cvs/e/e17/apps/e/src/modules/conf_mousebindings/e_int_config_mousebindings.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- e_int_config_mousebindings.c7 Oct 2007 21:22:41 - 1.3 +++ e_int_config_mousebindings.c11 Feb 2008 22:17:35 - 1.4 @@ -1299,7 +1299,8 @@ e_win_centered_set(cfdata->locals.dia->win, 1); e_win_borderless_set(cfdata->locals.dia->win, 1); - cfdata->locals.bind_win = ecore_x_window_input_new(man->root, 0, 0, 1, 1); + cfdata->locals.bind_win = ecore_x_window_input_new(man->root, 0, 0, + man->w, man->h); ecore_x_window_show(cfdata->locals.bind_win); e_grabinput_get(cfdata->locals.bind_win, 0, cfdata->locals.bind_win); - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ewl jethomas
Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Modified Files: ewl_scrollpane.c Log Message: Add unit tests and fixes for kinetic scrollpane. === RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_scrollpane.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- ewl_scrollpane.c11 Feb 2008 03:00:31 - 1.35 +++ ewl_scrollpane.c11 Feb 2008 22:00:02 - 1.36 @@ -231,8 +231,17 @@ ewl_scrollpane_cb_mouse_move_embedded); } if (s->kinfo) + { IF_FREE(s->kinfo->extra) - IF_FREE(s->kinfo); + } + else + { + s->kinfo = NEW(Ewl_Scrollpane_Scroll_Info_Base, 1); + s->kinfo->fps = 15; + s->kinfo->vmax = 50.0; + s->kinfo->vmin = 0.0; + s->kinfo->dampen = 0.95; + } if (type == EWL_KINETIC_SCROLL_NORMAL) { @@ -242,16 +251,7 @@ ewl_scrollpane_cb_mouse_up_normal, s); ewl_callback_append(s->overlay, EWL_CALLBACK_MOUSE_MOVE, ewl_scrollpane_cb_mouse_move_normal, s); - - if (!s->kinfo) - { - s->kinfo = NEW(Ewl_Scrollpane_Scroll_Info_Base, 1); - s->kinfo->extra = NEW(Ewl_Scrollpane_Scroll_Info_Normal, 1); - s->kinfo->fps = 15; - s->kinfo->vmax = 50.0; - s->kinfo->vmin = 0.0; - s->kinfo->dampen = 0.95; - } + s->kinfo->extra = NEW(Ewl_Scrollpane_Scroll_Info_Normal, 1); } else if (type == EWL_KINETIC_SCROLL_EMBEDDED) @@ -263,15 +263,7 @@ ewl_callback_append(s->overlay, EWL_CALLBACK_MOUSE_MOVE, ewl_scrollpane_cb_mouse_move_embedded, s); - if (!s->kinfo) - { - s->kinfo = NEW(Ewl_Scrollpane_Scroll_Info_Base, 1); - s->kinfo->extra = NEW(Ewl_Scrollpane_Scroll_Info_Embedded, 1); - s->kinfo->fps = 15; - s->kinfo->vmax = 50.0; - s->kinfo->vmin = 0.0; - s->kinfo->dampen = 0.95; - } + s->kinfo->extra = NEW(Ewl_Scrollpane_Scroll_Info_Embedded, 1); } s->type = type; @@ -1337,7 +1329,7 @@ DCHECK_PARAM_PTR_RET(s, -1); DCHECK_TYPE_RET(s, EWL_SCROLLPANE_TYPE, -1); - DRETURN_INT(s->kinfo->vmin, DLEVEL_STABLE); + DRETURN_INT(s->kinfo->dampen, DLEVEL_STABLE); } /** - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ewl jethomas
Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/bin/tests/kinetic_scrollpane Modified Files: ewl_kinetic_scrollpane_test.c Log Message: Add unit tests and fixes for kinetic scrollpane. === RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/kinetic_scrollpane/ewl_kinetic_scrollpane_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_kinetic_scrollpane_test.c 7 Feb 2008 20:15:30 - 1.2 +++ ewl_kinetic_scrollpane_test.c 11 Feb 2008 22:00:01 - 1.3 @@ -13,6 +13,22 @@ static int create_test(Ewl_Container *box); static void destroy_test(Ewl_Widget *w, void *ev, void *data); +/* unit tests */ +static int scroll_type_get(char *buf, int len); +static int kinetic_dampen_get(char *buf, int len); +static int kinetic_vmax_get(char *buf, int len); +static int kinetic_vmin_get(char *buf, int len); +static int kinetic_fps_get(char *buf, int len); + +static Ewl_Unit_Test kinetic_tree_unit_tests[] = { + {"get type of scrolling", scroll_type_get, NULL, -1, 0}, + {"get kinetic dampning", kinetic_dampen_get, NULL, -1, 0}, + {"get maximum kinetic velocity", kinetic_vmax_get, NULL, -1, 0}, + {"get minimum kinetic velocity", kinetic_vmin_get, NULL, -1, 0}, + {"get kinetic fps", kinetic_fps_get, NULL, -1, 0}, + {NULL, NULL, NULL, -1, 0} +}; + void test_info(Ewl_Test *test) { @@ -21,6 +37,7 @@ test->filename = __FILE__; test->func = create_test; test->type = EWL_TEST_TYPE_CONTAINER; + test->unit_tests = kinetic_tree_unit_tests; } static void destroy_test(Ewl_Widget *w, void *ev, void *data) @@ -92,3 +109,118 @@ return 1; } + +static int +scroll_type_get(char *buf, int len) +{ + Ewl_Widget *tree; + Ewl_Kinetic_Scroll type; + int ret = 1; + + tree = ewl_tree_new(); + ewl_tree_kinetic_scrolling_set(EWL_TREE(tree), + EWL_KINETIC_SCROLL_NORMAL); + type = ewl_tree_kinetic_scrolling_get(EWL_TREE(tree)); + + if (type != EWL_KINETIC_SCROLL_NORMAL) + { + LOG_FAILURE(buf, len, "get type is different from the set one"); + ret = 0; + } + + ewl_widget_destroy(tree); + + return ret; +} + +static int +kinetic_dampen_get(char *buf, int len) +{ + Ewl_Widget *tree; + double val, set; + int ret = 1; + + set = 0.06; + tree = ewl_tree_new(); + ewl_tree_kinetic_dampen_set(EWL_TREE(tree), set); + val = ewl_tree_kinetic_dampen_get(EWL_TREE(tree)); + + if (val != set) + { + LOG_FAILURE(buf, len, "get dampen is different from the set dampen"); + ret = 0; + } + + ewl_widget_destroy(tree); + + return ret; +} + +static int +kinetic_vmax_get(char *buf, int len) +{ + Ewl_Widget *tree; + double val, set; + int ret = 1; + + set = 27; + tree = ewl_tree_new(); + ewl_tree_kinetic_max_velocity_set(EWL_TREE(tree), set); + val = ewl_tree_kinetic_max_velocity_get(EWL_TREE(tree)); + + if (val != set) + { + LOG_FAILURE(buf, len, "get vmax is different from the set vmax"); + ret = 0; + } + + ewl_widget_destroy(tree); + + return ret; +} + +static int +kinetic_vmin_get(char *buf, int len) +{ + Ewl_Widget *tree; + double val, set; + int ret = 1; + + set = 13; + tree = ewl_tree_new(); + ewl_tree_kinetic_min_velocity_set(EWL_TREE(tree), set); + val = ewl_tree_kinetic_min_velocity_get(EWL_TREE(tree)); + + if (val != set) + { + LOG_FAILURE(buf, len, "get vmin is different from the set vmin"); + ret = 0; + } + + ewl_widget_destroy(tree); + + return ret; +} + +static int +kinetic_fps_get(char *buf, int len) +{ + Ewl_Widget *tree; + int val; + int ret = 1; + + tree = ewl_tree_new(); + ewl_tree_kinetic_fps_set(EWL_TREE(tree), 3); + val = ewl_tree_kinetic_fps_get(EWL_TREE(tree)); + + if (val != 3) + { + LOG_FAILURE(buf, len, "get fps is different from the set fps"); + ret = 0; + } + + ewl_widget_destroy(tree); + + return ret; +} + - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e englebass
Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e Dir : e17/apps/e/src/bin Modified Files: e_zone.c Log Message: Need to update edge windows after updating flip. === RCS file: /cvs/e/e17/apps/e/src/bin/e_zone.c,v retrieving revision 1.133 retrieving revision 1.134 diff -u -3 -r1.133 -r1.134 --- e_zone.c19 Jan 2008 11:41:42 - 1.133 +++ e_zone.c11 Feb 2008 17:27:18 - 1.134 @@ -506,6 +506,7 @@ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE); _e_zone_update_flip(zone); + _e_zone_update_edge(zone); } EAPI void @@ -1014,6 +1015,7 @@ if (ev->desk->zone != zone) return 1; _e_zone_update_flip(zone); + _e_zone_update_edge(zone); return 1; } - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs