----- Message de enlightenment-cvs@lists.sourceforge.net --------- Date : Sat, 29 Oct 2005 07:16:21 -0700 De : enlightenment-cvs@lists.sourceforge.net Répondre à : enlightenment-devel@lists.sourceforge.net Sujet : E CVS: apps/e codewarrior À : enlightenment-cvs@lists.sourceforge.net
Enlightenment CVS committal Author : codewarrior Project : e17 Module : apps/e Dir : e17/apps/e/src/bin Modified Files: e_fileman_file.c Log Message: -real fix =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_file.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- e_fileman_file.c 29 Oct 2005 13:53:23 -0000 1.8 +++ e_fileman_file.c 29 Oct 2005 14:16:21 -0000 1.9 @@ -89,11 +89,12 @@ if (file->name[0] == '.') file->type |= E_FM_FILE_TYPE_HIDDEN; - file->preview_funcs = E_NEW(E_Fm_File_Preview_Function, 4); + file->preview_funcs = E_NEW(E_Fm_File_Preview_Function, 5); file->preview_funcs[0] = e_fm_file_is_image; file->preview_funcs[1] = e_fm_file_is_etheme; file->preview_funcs[2] = e_fm_file_is_ebg; file->preview_funcs[3] = e_fm_file_is_eap; + file->preview_funcs[4] = NULL; D(("e_fm_file_new: %s\n", filename)); return file; @@ -178,9 +179,10 @@ int i; D(("e_fm_file_can_preview: (%s) (%p)\n", file->name, file)); - for (i = 0; i < sizeof(file->preview_funcs)/sizeof(E_Fm_File_Preview_Function); i++) + for (i = 0; file->preview_funcs[i]; i++) { E_Fm_File_Preview_Function func; + printf("%d\n", i); func = file->preview_funcs[i]; if (func(file)) return 1;
Hello! As far as I know, there is no need to add a NULL item to the table, as there is always a NULL item added after the last element of a table. Please correct me if I'm wrong. Cheers! -- ilLogict Website: http://illogict.online.fr E-Mail: [EMAIL PROTECTED] AIM/NIM: illogict Yahoo: illogict MSN: [EMAIL PROTECTED] ICQ: #74274856 Infos: E17 rocks! Le nettoyage de ligne, quelle chose efficace ! (1900->4700 @60dB) ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel