Enlightenment CVS committal Author : chaos Project : e17 Module : libs/epsilon
Dir : e17/libs/epsilon/src/lib Modified Files: epsilon_thumb.c Log Message: * Take another stab at getting the destination on reply, if we haven't got it already =================================================================== RCS file: /cvs/e/e17/libs/epsilon/src/lib/epsilon_thumb.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- epsilon_thumb.c 28 Mar 2006 09:10:14 -0000 1.1 +++ epsilon_thumb.c 28 Mar 2006 09:30:46 -0000 1.2 @@ -193,6 +193,23 @@ ecore_dlist_next(epsilon_request_queue); } + /*If the thumb dest is not set, but the generation was successful, + * try to get the dest now */ + if ( (!thumb->dest) && thumb->path && !thumb->status ) { + Epsilon* tb; + + /* + * Create a temp thumbnail struct to get the thumbnail + * path, don't actually generate the thumbnail here. + */ + tb = epsilon_new(thumb->path); + epsilon_exists(tb); + thumb->dest = (char *)epsilon_thumb_file_get(tb); + if (thumb->dest) + thumb->dest = strdup(thumb->dest); + epsilon_free(tb); + } + ecore_event_add(EPSILON_EVENT_DONE, thumb, epsilon_event_free, NULL); } ------------------------------------------------------- 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