Enlightenment CVS committal

Author  : handyande
Project : e17
Module  : apps/e_modules

Dir     : e17/apps/e_modules/src/modules/snow


Modified Files:
        e_mod_main.c 


Log Message:
tidy and remove all char bufs we can 
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e_modules/src/modules/snow/e_mod_main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_main.c        30 Mar 2005 10:56:58 -0000      1.2
+++ e_mod_main.c        30 Mar 2005 11:25:59 -0000      1.3
@@ -76,11 +76,8 @@
 int
 info(E_Module *m)
 {
-   char buf[4096];
-   
    m->label = strdup("Snow");
-   snprintf(buf, sizeof(buf), PACKAGE_LIB_DIR 
"/e_modules/snow/module_icon.png");
-   m->icon_file = strdup(buf);
+   m->icon_file = PACKAGE_LIB_DIR "/e_modules/snow/module_icon.png";
    return 1;
 }
 
@@ -297,13 +294,10 @@
 static void
 _snow_trees_load(Snow *snow) {
    Evas_Object *o;
-   char buf[4096];
    int tw, th, i;
 
-   snprintf(buf, sizeof(buf), PACKAGE_LIB_DIR "/e_modules/snow/tree.png");
-
    o = evas_object_image_add(snow->canvas);
-   evas_object_image_file_set(o, buf, "");
+   evas_object_image_file_set(o, PACKAGE_LIB_DIR "/e_modules/snow/tree.png", 
"");
    evas_object_image_size_get(o, &tw, &th);
 
 for (i = 0; i < snow->conf->tree_count; i++)
@@ -311,7 +305,7 @@
      Evas_Coord tx, ty;
 if (i != 0) {
      o = evas_object_image_add(snow->canvas);
-     evas_object_image_file_set(o, buf, "");
+     evas_object_image_file_set(o, PACKAGE_LIB_DIR "/e_modules/snow/tree.png", 
"");
 }
      evas_object_resize(o, tw, th);
      evas_object_image_alpha_set(o, 1);




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to