Enlightenment CVS committal Author : titan Project : e17 Module : apps/ephoto
Dir : e17/apps/ephoto/src/bin Modified Files: ephoto_main.c Log Message: Cleanup warnings. =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_main.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- ephoto_main.c 24 Apr 2007 21:38:10 -0000 1.26 +++ ephoto_main.c 25 Apr 2007 21:54:53 -0000 1.27 @@ -218,17 +218,21 @@ while (ecore_dlist_current(em->images)) { imagef = ecore_dlist_current(em->images); - - thumb = add_image(em->fbox, imagef, 1, freebox_image_clicked, NULL); - ewl_image_constrain_set(EWL_IMAGE(thumb), 81); - ewl_object_alignment_set(EWL_OBJECT(thumb), EWL_FLAG_ALIGN_CENTER); - ewl_widget_name_set(thumb, imagef); + if(imagef) + { + thumb = add_image(em->fbox, imagef, 1, freebox_image_clicked, NULL); + ewl_image_constrain_set(EWL_IMAGE(thumb), 81); + ewl_object_alignment_set(EWL_OBJECT(thumb), EWL_FLAG_ALIGN_CENTER); + ewl_widget_name_set(thumb, imagef); + } ecore_dlist_next(em->images); } ecore_dlist_goto_first(em->images); - ewl_image_file_path_set(EWL_IMAGE(em->simage), ecore_dlist_current(em->images)); - + if(ecore_dlist_current(em->images)) + { + ewl_image_file_path_set(EWL_IMAGE(em->simage), ecore_dlist_current(em->images)); + } ewl_mvc_data_set(EWL_MVC(em->ltree), em->images); ewl_mvc_dirty_set(EWL_MVC(em->ltree), 1); @@ -281,16 +285,20 @@ while (ecore_dlist_current(em->images)) { imagef = ecore_dlist_current(em->images); - - thumb = add_image(em->fbox, imagef, 1, freebox_image_clicked, NULL); - ewl_image_constrain_set(EWL_IMAGE(thumb), 81); - ewl_object_alignment_set(EWL_OBJECT(thumb), EWL_FLAG_ALIGN_CENTER); - ewl_widget_name_set(thumb, imagef); - + if(imagef) + { + thumb = add_image(em->fbox, imagef, 1, freebox_image_clicked, NULL); + ewl_image_constrain_set(EWL_IMAGE(thumb), 81); + ewl_object_alignment_set(EWL_OBJECT(thumb), EWL_FLAG_ALIGN_CENTER); + ewl_widget_name_set(thumb, imagef); + } ecore_dlist_next(em->images); } ecore_dlist_goto_first(em->images); - ewl_image_file_path_set(EWL_IMAGE(em->simage), ecore_dlist_current(em->images)); + if(ecore_dlist_current(em->images)) + { + ewl_image_file_path_set(EWL_IMAGE(em->simage), ecore_dlist_current(em->images)); + } ewl_mvc_data_set(EWL_MVC(em->ltree), em->images); ewl_mvc_dirty_set(EWL_MVC(em->ltree), 1); } ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs