Enlightenment CVS committal Author : devilhorns Project : e_modules Module : net
Dir : e_modules/net Modified Files: e_mod_main.c Log Message: Freeze evas events when adding and removing lines to graph. Unswallow lines when clearing graph. =================================================================== RCS file: /cvs/e/e_modules/net/e_mod_main.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- e_mod_main.c 2 Apr 2006 00:11:31 -0000 1.21 +++ e_mod_main.c 3 Apr 2006 10:24:23 -0000 1.22 @@ -628,6 +628,8 @@ Evas_List *l; int i, j = 0; + evas_event_freeze(nf->evas); + evas_object_geometry_get(nf->chart_obj, &x, &y, &w, &h); if (rx_val > 100) @@ -666,6 +668,7 @@ if ((j - 2) >= w) { nf->old_rx = evas_list_remove(nf->old_rx, last); + edje_object_part_unswallow(nf->chart_obj, last); evas_object_del(last); } @@ -697,8 +700,11 @@ if ((j - 2) >= w) { nf->old_tx = evas_list_remove(nf->old_tx, last); + edje_object_part_unswallow(nf->chart_obj, last); evas_object_del(last); } + + evas_event_thaw(nf->evas); } void @@ -706,10 +712,13 @@ { Evas_List *l; + evas_event_freeze(nf->evas); + for (l = nf->old_rx; l; l = l->next) { Evas_Object *o; o = evas_list_data(l); + edje_object_part_unswallow(nf->chart_obj, o); evas_object_del(o); } evas_list_free(nf->old_rx); @@ -719,9 +728,12 @@ { Evas_Object *o; o = evas_list_data(l); + edje_object_part_unswallow(nf->chart_obj, o); evas_object_del(o); } evas_list_free(nf->old_tx); nf->old_tx = NULL; + + evas_event_thaw(nf->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