Enlightenment CVS committal
Author : digitalfallout
Project : misc
Module : equate
Dir : misc/equate/src
Modified Files:
edje.c
Log Message:
Added support for passing the path to the edje theme you wish
to use
===================================================================
RCS file: /cvsroot/enlightenment/misc/equate/src/edje.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- edje.c 8 Jan 2004 16:44:32 -0000 1.6
+++ edje.c 10 Jan 2004 19:45:11 -0000 1.7
@@ -7,7 +7,12 @@
* our edje emits into the backend. All the operators, functions, and
* input values must have a #define'd numeric constant so it can be
* evaluated in _equate_interp.
+ *
+ * Jan 10 DigitalFallout
+ * Added theme path detection
+ *
*/
+
#define EQ_EXIT 1
#define OP_CLR 2
#define OP_DIV 3
@@ -375,8 +380,13 @@
o = edje_object_add(evas);
evas_object_move(o, 0, 0);
- snprintf(theme, PATH_MAX, PACKAGE_DATA_DIR "/themes/%s.eet",
- eq->conf.theme);
+
+ if ((strstr(eq->conf.theme, "/")))
+ snprintf(theme, PATH_MAX, eq->conf.theme);
+ else
+ snprintf(theme, PATH_MAX, PACKAGE_DATA_DIR "/themes/%s.eet",
+ eq->conf.theme);
+
if (edje_object_file_set(o, theme, "Main")) {
evas_object_name_set(o, "edje");
edje_object_size_min_get(o, &mw, &mh);
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs