Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : wlan

Dir     : e_modules/wlan


Modified Files:
        e_mod_main.h e_mod_main.c e_mod_config.c 


Log Message:
Fix setting wlan text.
Port net module device switching fix to wlan

===================================================================
RCS file: /cvsroot/enlightenment/e_modules/wlan/e_mod_main.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.h        9 Mar 2006 11:42:09 -0000       1.5
+++ e_mod_main.h        12 Mar 2006 19:01:34 -0000      1.6
@@ -59,4 +59,6 @@
 EAPI int   e_modapi_about    (E_Module *m);
 EAPI int   e_modapi_config   (E_Module *m);
 
+void _wlan_face_graph_clear(Wlan_Face *wf);
+
 #endif
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/wlan/e_mod_main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_mod_main.c        9 Mar 2006 11:42:09 -0000       1.14
+++ e_mod_main.c        12 Mar 2006 19:01:34 -0000      1.15
@@ -524,10 +524,10 @@
    if (nf->conf->show_text)
      {
        snprintf(in_str, sizeof(in_str), "LNK: %d%%", wlan_value);
-       edje_object_part_text_set(nf->wlan_obj, "link-text", in_str);
+       edje_object_part_text_set(nf->txt_obj, "link-text", in_str);
      }   
    else
-     edje_object_part_text_set(nf->wlan_obj, "link-text", "");
+     edje_object_part_text_set(nf->txt_obj, "link-text", "");
    
    if (nf->conf->show_graph) 
      _wlan_face_graph_values(nf, wlan_value);
@@ -583,7 +583,7 @@
      }
 }
 
-static void
+void
 _wlan_face_graph_clear(Wlan_Face *wf)
 {
    Evas_List *l;
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/wlan/e_mod_config.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_mod_config.c      9 Mar 2006 11:42:09 -0000       1.6
+++ e_mod_config.c      12 Mar 2006 19:01:34 -0000      1.7
@@ -149,8 +149,15 @@
 
    nf = cfd->data;
    tmp = ecore_list_goto_index(cfdata->devs, cfdata->dev_num);
-   if (tmp != NULL)
-     nf->conf->device = (char *)evas_stringshare_add(strdup(tmp));
+   if (tmp != NULL) 
+     {
+       if (strcmp(tmp, nf->conf->device)) 
+         {
+            _wlan_face_graph_clear(nf);
+            nf->conf->device = (char *)evas_stringshare_add(strdup(tmp));
+         }     
+     }
+   
    nf->conf->check_interval = cfdata->check_interval;
    nf->conf->show_text = cfdata->show_text;
    nf->conf->show_graph = cfdata->show_graph;




-------------------------------------------------------
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