Enlightenment CVS committal
Author : englebass
Project : e17
Module : libs/efreet
Dir : e17/libs/efreet/src/lib
Modified Files:
efreet_icon.c
Log Message:
Don't store the complete path in the name element.
===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/lib/efreet_icon.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- efreet_icon.c 29 May 2007 19:29:46 -0000 1.17
+++ efreet_icon.c 29 May 2007 20:18:21 -0000 1.18
@@ -838,7 +838,16 @@
efreet_icon_populate(icon, ico_path);
}
- if (!icon->name) icon->name = strdup(path);
+ if (!icon->name)
+ {
+ char *file;
+
+ file = ecore_file_get_file(icon->path);
+ p = strrchr(icon->path, '.');
+ if (p) *p = '\0';
+ icon->name = strdup(file);
+ if (p) *p = '.';
+ }
return icon;
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs