Enlightenment CVS committal Author : englebass Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto_callbacks.c ephoto_database.c ephoto_slideshow.c Log Message: - Remove unused variables. - Timer callbacks should return 1 when they are to be run again. - Cast return from ecore_list. =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_callbacks.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- ephoto_callbacks.c 24 Oct 2006 16:07:00 -0000 1.36 +++ ephoto_callbacks.c 29 Dec 2006 12:17:46 -0000 1.37 @@ -77,11 +77,9 @@ void populate_images(Ewl_Widget *w, void *event, void *data) { - FILE *file_ptr; const char *dir; char *image_path; char full_path[PATH_MAX]; - char text[PATH_MAX]; Ecore_List *ls; Ecore_List *images; Ewl_Widget *image; @@ -100,7 +98,7 @@ ls = ecore_file_ls(dir); while(!ecore_list_is_empty(ls)) { - snprintf(full_path, PATH_MAX, "%s/%s", dir, ecore_list_remove_first(ls)); + snprintf(full_path, PATH_MAX, "%s/%s", dir, (char *)ecore_list_remove_first(ls)); if (fnmatch("*.[Jj][Pp][Ee][Gg]", full_path, 0) == 0) { ecore_list_append(images, strdup(full_path)); =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_database.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ephoto_database.c 24 Oct 2006 15:34:05 -0000 1.1 +++ ephoto_database.c 29 Dec 2006 12:17:46 -0000 1.2 @@ -38,7 +38,6 @@ void ephoto_db_add_album(sqlite3 *db, char *name, char *description) { char command[PATH_MAX]; - Ewl_Widget *hbox, *image, *text, *children[2], *row; snprintf(command, PATH_MAX, "INSERT or IGNORE INTO albums(name, description) " "VALUES('%s', '%s');", name, description); =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_slideshow.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ephoto_slideshow.c 10 Dec 2006 22:05:37 -0000 1.21 +++ ephoto_slideshow.c 29 Dec 2006 12:17:46 -0000 1.22 @@ -83,6 +83,7 @@ ewl_widget_destroy(sc->image->parent->parent); } } + return 1; } void show_first_image(Ewl_Widget *w, void *event, void *data) @@ -105,7 +106,6 @@ Ewl_Widget *cell; Ewl_Widget *image; Slide_Config *sc; - int ew, eh; sc = parse_slideshow_config(); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs