Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : wlan

Dir     : e_modules/wlan


Modified Files:
        e_mod_main.c 


Log Message:
Freeze evas events when adding and removing lines to graph.
Unswallow lines when clearing graph or removing old lines.

===================================================================
RCS file: /cvs/e/e_modules/wlan/e_mod_main.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- e_mod_main.c        2 Apr 2006 00:12:40 -0000       1.20
+++ e_mod_main.c        3 Apr 2006 10:26:34 -0000       1.21
@@ -543,6 +543,8 @@
    Evas_List *l;
    int i, j = 0;
    int v;
+
+   evas_event_freeze(wf->evas);
    
    evas_object_geometry_get(wf->chart_obj, &x, &y, &w, &h);
 
@@ -576,8 +578,11 @@
    if ((j - 2) >= w) 
      {
        wf->old_values = evas_list_remove(wf->old_values, last);
+       edje_object_part_unswallow(wf->chart_obj, last);
        evas_object_del(last);
      }
+   
+   evas_event_thaw(wf->evas);
 }
 
 void
@@ -585,13 +590,18 @@
 {
    Evas_List *l;
 
+   evas_event_freeze(wf->evas);
+   
    for (l = wf->old_values; l; l = l->next) 
      {
        Evas_Object *o;
        o = evas_list_data(l);
+       edje_object_part_unswallow(wf->chart_obj, o);
        evas_object_del(o);
      }
    evas_list_free(wf->old_values);
    wf->old_values = NULL;
+   
+   evas_event_thaw(wf->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

Reply via email to