Enlightenment CVS committal
Author : englebass
Project : e17
Module : libs/efreet
Dir : e17/libs/efreet/src/bin
Modified Files:
ef_icon_theme.c
Log Message:
Remove the icon cache.
This means that users of efreet_icon_list_find, efreet_icon_path_find and
efreet_icon_find must clean up after themselves!
===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/bin/ef_icon_theme.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ef_icon_theme.c 25 Jul 2007 17:00:56 -0000 1.5
+++ ef_icon_theme.c 26 Jul 2007 11:30:10 -0000 1.6
@@ -9,7 +9,7 @@
#define PATH_MAX 4096
#endif
-#define SIZE "16x16"
+#define SIZE "128x128"
#define THEME "Tango"
static void ef_icon_theme_themes_find(const char *search_dir,
@@ -450,8 +450,7 @@
for (i = 0; icons[i] != NULL; i++)
{
- const char *path;
- char *t, *s;
+ char *path, *s;
path = efreet_icon_path_find(THEME, icons[i], SIZE);
@@ -465,10 +464,9 @@
continue;
}
- t = strdup(path);
- s = strrchr(t, '.');
+ s = strrchr(path, '.');
if (s) *s = '\0';
- s = strrchr(t, '/');
+ s = strrchr(path, '/');
if (s) s++;
if (s && strcmp(s, icons[i]))
@@ -476,7 +474,7 @@
printf("Name mismatch name (%s) vs ef (%s)\n", icons[i], s);
ret = 0;
}
- free(t);
+ free(path);
}
ecore_hash_destroy(icon_hash);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs