Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : proto
Dir : e17/proto/esmart/src/thumb
Modified Files:
E_Thumb.c
Log Message:
Forgot the realpath stuff, this broke entice :(
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/thumb/E_Thumb.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- E_Thumb.c 10 Dec 2003 04:57:59 -0000 1.10
+++ E_Thumb.c 10 Dec 2003 05:25:14 -0000 1.11
@@ -29,8 +29,9 @@
Evas_Object *
e_thumb_new (Evas * evas, const char *file)
{
+ char buf[PATH_MAX];
Evas_Object *result = NULL;
- if (file && file[0] == '/')
+ if (file)
{
E_Thumb *e = NULL;
Evas_Smart *s = NULL;
@@ -52,7 +53,10 @@
if ((e = (E_Thumb *) evas_object_smart_data_get (result)))
{
- if((e->e = epsilon_new(file)))
+ if(!realpath(file, buf))
+ snprintf(buf, PATH_MAX, "%s", file);
+
+ if((e->e = epsilon_new(buf)))
{
if(epsilon_exists(e->e) == EPSILON_FAIL)
{
@@ -62,7 +66,6 @@
else
{
e->image = evas_object_image_add (evas);
- epsilon_thumb_file_get(e->e);
evas_object_image_file_set (e->image,
epsilon_thumb_file_get(e->e),NULL);
if (!evas_object_image_load_error_get (e->image))
-------------------------------------------------------
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