Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : mem
Dir : e_modules/mem
Modified Files:
e_mod_main.c
Log Message:
Freeze evas events when adding lines for the graph.
Unswallow removed lines.
===================================================================
RCS file: /cvs/e/e_modules/mem/e_mod_main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_mod_main.c 2 Apr 2006 00:10:07 -0000 1.19
+++ e_mod_main.c 3 Apr 2006 10:11:39 -0000 1.20
@@ -618,6 +618,8 @@
Evas_Object *last = NULL;
Evas_List *l;
int i, j = 0;
+
+ evas_event_freeze(mf->evas);
evas_object_geometry_get(mf->chart_obj, &x, &y, &w, &h);
@@ -637,7 +639,8 @@
evas_object_show(o);
}
- mf->old_real = evas_list_prepend(mf->old_real, o);
+ /* Add new value to list */
+ mf->old_real = evas_list_prepend(mf->old_real, o);
l = mf->old_real;
for (i = (x + w); l && (j -2) < w; l = l->next, j++)
{
@@ -653,6 +656,7 @@
if ((j - 2) >= w)
{
mf->old_real = evas_list_remove(mf->old_real, last);
+ edje_object_part_unswallow(mf->chart_obj, last);
evas_object_del(last);
}
@@ -685,8 +689,11 @@
if ((j - 2) >= w)
{
mf->old_swap = evas_list_remove(mf->old_swap, last);
+ edje_object_part_unswallow(mf->chart_obj, last);
evas_object_del(last);
}
+
+ evas_event_thaw(mf->evas);
}
static void
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs