Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/tools/ewl_config Modified Files: ewl_config.c Log Message: - fixup path - make sure we get a pointer back =================================================================== RCS file: /cvs/e/e17/libs/ewl/tools/ewl_config/ewl_config.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- ewl_config.c 15 Oct 2006 22:34:14 -0000 1.36 +++ ewl_config.c 14 Nov 2006 15:31:46 -0000 1.37 @@ -346,26 +346,30 @@ i = 0; v = ewl_config_string_get(ewl_config, EWL_CONFIG_THEME_NAME); - rep = opendir(PACKAGE_DATA_DIR "/themes"); - while ((file = readdir(rep))) - { - int len; - - len = strlen(file->d_name); - if ((len >= 4) && (!strcmp(file->d_name + len - 4, ".edj"))) - { - char *t; + rep = opendir(PACKAGE_DATA_DIR "/ewl/themes"); + if (rep) + { + while ((file = readdir(rep))) + { + int len; - t = strdup(file->d_name); - *(t + len - 4) = '\0'; + len = strlen(file->d_name); + if ((len >= 4) && + (!strcmp(file->d_name + len - 4, ".edj"))) + { + char *t; - if (!strcmp(t, v)) sel = i; + t = strdup(file->d_name); + *(t + len - 4) = '\0'; - ecore_list_append(list, t); - i++; + if (!strcmp(t, v)) sel = i; + + ecore_list_append(list, t); + i++; + } } + closedir(rep); } - closedir(rep); ewl_mvc_selected_set(EWL_MVC(o), sel, 0); ewl_mvc_dirty_set(EWL_MVC(o), TRUE); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs