Enlightenment CVS committal Author : devilhorns Project : e_modules Module : cpu
Dir : e_modules/cpu Modified Files: e_mod_main.c Log Message: Freeze evas events when clearing the graph. Unswallow old lines when clearing. =================================================================== RCS file: /cvs/e/e_modules/cpu/e_mod_main.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- e_mod_main.c 2 Apr 2006 00:09:03 -0000 1.16 +++ e_mod_main.c 3 Apr 2006 10:22:31 -0000 1.17 @@ -568,6 +568,8 @@ int b = 0; int c = 100; int d = 0; + + evas_event_freeze(cf->evas); evas_object_geometry_get(cf->chart_obj, &x, &y, &w, &h); @@ -619,10 +621,13 @@ if ((j - 2) >= w) { cf->old_values[d] = evas_list_remove(cf->old_values[d], last); + edje_object_part_unswallow(cf->chart_obj, last); evas_object_del(last); } d++; } + + evas_event_thaw(cf->evas); } static void @@ -631,18 +636,24 @@ int i = 0; Evas_List *l; + evas_event_freeze(cf->evas); + while (i < cpu_count) { for (l = cf->old_values[i]; l; l = l->next) { Evas_Object *o; o = evas_list_data(l); + edje_object_part_unswallow(cf->chart_obj, o); evas_object_del(o); } evas_list_free(cf->old_values[i]); cf->old_values[i] = NULL; - if (!cf->cpu->conf->show_graph) - evas_object_hide(cf->chart_obj); i++; } + + if (!cf->cpu->conf->show_graph) + evas_object_hide(cf->chart_obj); + + evas_event_thaw(cf->evas); } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs