Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_theme.c ewl_widget.c
Log Message:
A patch for absolute paths to themes from Dan Sinclair.
Fix for using edje parts with EWL.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_theme.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -3 -r1.63 -r1.64
--- ewl_theme.c 28 Jun 2004 16:08:06 -0000 1.63
+++ ewl_theme.c 1 Jul 2004 05:18:17 -0000 1.64
@@ -28,7 +28,7 @@
struct stat st;
char theme_db_path[PATH_MAX];
char *home;
-
+
DENTER_FUNCTION(DLEVEL_STABLE);
/*
@@ -128,6 +128,29 @@
}
/*
+ * see if they gave a full path to the theme
+ */
+ if (!theme_path) {
+ if (theme_name[0] != '/') {
+ char *cwd;
+
+ cwd = getenv("PWD");
+ if (cwd != NULL)
+ snprintf(theme_db_path, PATH_MAX, "%s/%s", cwd,
theme_name);
+ else
+ snprintf(theme_db_path, PATH_MAX, "%s", theme_name);
+
+ } else {
+ snprintf(theme_db_path, PATH_MAX, "%s", theme_name);
+ }
+
+ if (((stat(theme_db_path, &st)) == 0) &&
+ S_ISREG(st.st_mode)) {
+ theme_path = strdup(theme_db_path);
+ }
+ }
+
+ /*
* If we can't find a theme, no point in continuing further.
*/
if (!theme_path) {
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -3 -r1.114 -r1.115
--- ewl_widget.c 2 Jun 2004 18:55:36 -0000 1.114
+++ ewl_widget.c 1 Jul 2004 05:18:17 -0000 1.115
@@ -1067,7 +1067,7 @@
* Load the theme object
*/
w->theme_object = edje_object_add(emb->evas);
-
+ evas_object_repeat_events_set(w->theme_object, 1);
edje_object_file_set(w->theme_object, i, group);
FREE(group);
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs