Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        entice.c 


Log Message:
doh, it would only load preexisting thumbnails, generate !

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- entice.c    10 Dec 2003 05:26:05 -0000      1.23
+++ entice.c    10 Dec 2003 06:14:29 -0000      1.24
@@ -372,7 +372,7 @@
 void
 entice_file_add_job_cb(void *data)
 {
-   Evas_Object *o = NULL;
+   Epsilon *e = NULL;
    char buf[PATH_MAX], *file = NULL;
 
    if (entice && entice->ee && data)
@@ -399,9 +399,16 @@
          }
          if (entice_file_is_dir(buf))
             entice_file_add_dir_job_cb(buf);
-         else if ((o = e_thumb_new(ecore_evas_get(entice->ee), buf)))
+         else if ((e = epsilon_new(buf)))
          {
-            evas_object_del(o);
+            if (epsilon_exists(e) == EPSILON_FAIL)
+            {
+               if (epsilon_generate(e) == EPSILON_FAIL)
+               {
+                  fprintf(stderr, "Unable to thumbnail %s\n", file);
+               }
+            }
+            epsilon_free(e);
             entice_ipc_client_request_image_load(buf);
          }
       }




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to