Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : weather

Dir     : e_modules/weather


Modified Files:
        e_mod_main.c 


Log Message:
Oops..Fix weather images.

===================================================================
RCS file: /cvsroot/enlightenment/e_modules/weather/e_mod_main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_mod_main.c        20 Mar 2006 19:59:56 -0000      1.11
+++ e_mod_main.c        21 Mar 2006 04:18:24 -0000      1.12
@@ -687,8 +687,6 @@
    if (!wf)
      return;
 
-   e_icon_file_set(wf->icon_obj, PACKAGE_DATA_DIR "/images/na.png");
-   edje_object_part_swallow(wf->weather_obj, "icon", wf->icon_obj);
    edje_object_part_text_set(wf->weather_obj, "location", wf->location);
    
    if (wf->conf->display == DETAILED_DISPLAY)
@@ -698,11 +696,16 @@
    
    if (!ok)
      {
+       e_icon_file_set(wf->icon_obj, PACKAGE_DATA_DIR "/images/na.png");
+       edje_object_part_swallow(wf->weather_obj, "icon", wf->icon_obj);
         edje_object_part_text_set(wf->weather_obj, "temp", "");
         edje_object_part_text_set(wf->weather_obj, "conditions", "");
      }
    else 
      {
+       snprintf(buf, sizeof(buf), PACKAGE_DATA_DIR"/images/%s", wf->icon);
+       e_icon_file_set(wf->icon_obj, buf);
+       edje_object_part_swallow(wf->weather_obj, "icon", wf->icon_obj);
         snprintf(buf, sizeof(buf), "%d°%c",wf->temp, wf->degrees);
         edje_object_part_text_set(wf->weather_obj, "temp", buf);
         edje_object_part_text_set(wf->weather_obj, "conditions", 
wf->conditions);




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