Enlightenment CVS committal
Author : handyande
Project : e17
Module : apps/e_modules
Dir : e17/apps/e_modules/src/modules/snow
Modified Files:
Makefile.am e_mod_main.c
Added Files:
flake-l.png flake-m.png flake-s.png tree.png
Log Message:
Fix snow module to build out of tree
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_modules/src/modules/snow/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 30 Mar 2005 10:03:59 -0000 1.1
+++ Makefile.am 30 Mar 2005 10:56:58 -0000 1.2
@@ -3,8 +3,13 @@
# data files for the module
filesdir = $(libdir)/e_modules/snow
files_DATA = \
+tree.png \
+flake-s.png \
+flake-m.png \
+flake-l.png \
module_icon.png
+
EXTRA_DIST = $(files_DATA)
# the module .so file
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_modules/src/modules/snow/e_mod_main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_main.c 30 Mar 2005 09:58:26 -0000 1.1
+++ e_mod_main.c 30 Mar 2005 10:56:58 -0000 1.2
@@ -1,4 +1,5 @@
#include "e.h"
+#include "config.h"
#include "e_mod_main.h"
/* TODO List:
@@ -78,7 +79,7 @@
char buf[4096];
m->label = strdup("Snow");
- snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(m));
+ snprintf(buf, sizeof(buf), PACKAGE_LIB_DIR
"/e_modules/snow/module_icon.png");
m->icon_file = strdup(buf);
return 1;
}
@@ -299,7 +300,7 @@
char buf[4096];
int tw, th, i;
- snprintf(buf, sizeof(buf), "%s/tree.png", e_module_dir_get(snow->module));
+ 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, "");
@@ -335,8 +336,7 @@
Snow_Flake *flake;
evas_output_viewport_get(snow->canvas, &xx, &yy, &ww, &hh);
- snprintf(buf, sizeof(buf), "%s/flake-%c.png",
e_module_dir_get(snow->module),
- type);
+ snprintf(buf, sizeof(buf), PACKAGE_LIB_DIR "/e_modules/snow/flake-%c.png",
type);
o = evas_object_image_add(snow->canvas);
evas_object_image_file_set(o, buf, "");
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs