Enlightenment CVS committal Author : titansoccer15 Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto.c ephoto_browsing.c Log Message: Resort back to old style without image databasing for the time being... some of the image databasing code is still there, just commented out, so if you want to test that part, uncomment it :) =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/ephoto/src/ephoto.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ephoto.c 24 Feb 2006 21:25:55 -0000 1.3 +++ ephoto.c 25 Feb 2006 06:53:55 -0000 1.4 @@ -37,11 +37,11 @@ /*****************************************/ /****Get db directory****/ char *home = getenv("HOME"); - snprintf(tempdb, PATH_MAX, "%s/ephoto_images", home); - if ( !ecore_file_is_dir(tempdb) ) { - ecore_file_mkdir(tempdb); - } - snprintf(db, PATH_MAX, "%s", tempdb); + //snprintf(tempdb, PATH_MAX, "%s/ephoto_images", home); + //if ( !ecore_file_is_dir(tempdb) ) { + // ecore_file_mkdir(tempdb); + //} + //snprintf(db, PATH_MAX, "%s", tempdb); /**************************/ /****Setup the layout****/ m->win = ewl_window_new(); @@ -72,7 +72,7 @@ ewl_widget_show(m->images); m->directory = ewl_entry_new(); - ewl_text_text_set(EWL_TEXT(m->directory), db); + ewl_text_text_set(EWL_TEXT(m->directory), home); ewl_object_alignment_set(EWL_OBJECT(m->directory), EWL_FLAG_ALIGN_CENTER); ewl_container_child_append(EWL_CONTAINER(m->images), m->directory); ewl_callback_append(m->directory, EWL_CALLBACK_VALUE_CHANGED, populatei_cb, NULL); =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/ephoto/src/ephoto_browsing.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ephoto_browsing.c 24 Feb 2006 21:25:55 -0000 1.7 +++ ephoto_browsing.c 25 Feb 2006 06:53:55 -0000 1.8 @@ -448,16 +448,16 @@ ecore_dlist_append(m->imagelist, strdup(pathi)); slidenum++; - home = getenv("HOME"); - snprintf(imagedb, PATH_MAX, "%s/ephoto_images", home); - printf("%s\n", imagedb); - snprintf(tempcheck, PATH_MAX, "%s/%s", imagedb, name); - printf("%s\n", tempcheck); - if ( !ecore_file_exists(tempcheck) ) { - snprintf(equiv, PATH_MAX, "%s", pathi); - printf("%s\n", equiv); - ecore_file_cp(equiv, tempcheck); - } + //home = getenv("HOME"); + //snprintf(imagedb, PATH_MAX, "%s/ephoto_images", home); + //printf("%s\n", imagedb); + //snprintf(tempcheck, PATH_MAX, "%s/%s", imagedb, name); + //printf("%s\n", tempcheck); + //if ( !ecore_file_exists(tempcheck) ) { + // snprintf(equiv, PATH_MAX, "%s", pathi); + // printf("%s\n", equiv); + // ecore_file_cp(equiv, tempcheck); + //} /**********************************************************/ /****Enable the slideshow and presentation buttons so we can get to work****/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs