Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : libs/esmart

Dir     : e17/libs/esmart/src/lib/esmart_thumb


Modified Files:
        esmart_thumb.c 


Log Message:
patch from chady kassouf to have esmart generate the thumbnail if it isn't 
present on new call
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_thumb/esmart_thumb.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- esmart_thumb.c      19 Nov 2004 03:18:38 -0000      1.11
+++ esmart_thumb.c      16 Feb 2005 01:07:59 -0000      1.12
@@ -74,10 +74,13 @@
            {
              if (epsilon_exists (e->e) == EPSILON_FAIL)
                {
-                 esmart_thumb_free (result);
-                 result = NULL;
+                 if (epsilon_generate (e->e) == EPSILON_FAIL)
+                   {
+                      esmart_thumb_free(result);
+                      return NULL;
+                   }
                }
-             else if ((e->info = epsilon_info_get (e->e)))
+             if ((e->info = epsilon_info_get (e->e)))
                {
                  Imlib_Image im = NULL;
                  if ((im = imlib_load_image (epsilon_thumb_file_get (e->e))))




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to