Enlightenment CVS committal Author : englebass Project : e_modules Module : rain
Dir : e_modules/rain Modified Files: e_mod_main.c Log Message: remove fixed reference to image files. =================================================================== RCS file: /cvs/e/e_modules/rain/e_mod_main.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- e_mod_main.c 12 Nov 2007 07:58:34 -0000 1.28 +++ e_mod_main.c 12 Nov 2007 08:32:40 -0000 1.29 @@ -200,11 +200,13 @@ static void _rain_clouds_load(Rain *rain) { + char buf[4096]; Evas_Object *o; int tw, th, i; o = evas_object_image_add(rain->canvas); - evas_object_image_file_set(o, PACKAGE_DATA_DIR "/cloud.png", ""); + snprintf(buf, sizeof(buf), "%s/cloud.png", e_module_dir_get(rain->module)); + evas_object_image_file_set(o, buf, ""); evas_object_image_size_get(o, &tw, &th); for (i = 0; i < rain->conf->cloud_count; i++) @@ -214,7 +216,8 @@ if (i != 0) { o = evas_object_image_add(rain->canvas); - evas_object_image_file_set(o, PACKAGE_DATA_DIR "/cloud.png", ""); + snprintf(buf, sizeof(buf), "%s/cloud.png", e_module_dir_get(rain->module)); + evas_object_image_file_set(o, buf, ""); } evas_object_resize(o, tw, th); evas_object_image_alpha_set(o, 1); @@ -239,7 +242,7 @@ Rain_Drop *drop; evas_output_viewport_get(rain->canvas, &xx, &yy, &ww, &hh); - snprintf(buf, sizeof(buf), PACKAGE_DATA_DIR "/drop-%c.png", type); + snprintf(buf, sizeof(buf), "%s/drop-%c.png", e_module_dir_get(rain->module), type); o = evas_object_image_add(rain->canvas); evas_object_image_file_set(o, buf, ""); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs