Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_modules.c Log Message: Comment out the efreet_icon_path_find call as this function is slowing down the modules dialog badly & the module(s) icon is defined in it's edj anyway. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_modules.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -3 -r1.72 -r1.73 --- e_int_config_modules.c 9 Oct 2007 17:57:50 -0000 1.72 +++ e_int_config_modules.c 28 Oct 2007 07:37:25 -0000 1.73 @@ -1,7 +1,6 @@ /* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ - #include "e.h" typedef struct _CFModule @@ -284,6 +283,7 @@ if (!name) continue; module = evas_hash_find(modules, name); if ((!module) || (module->enabled) || (!module->icon)) continue; + /* icon = efreet_icon_path_find(e_config->icon_theme, module->icon, "24x24"); if ((!icon) && (module->orig_path)) @@ -293,6 +293,14 @@ icon = strdup(buf); free(path); } + */ + if (module->orig_path) + { + path = ecore_file_dir_get(module->orig_path); + snprintf(buf, sizeof(buf), "%s/%s.edj", path, module->icon); + icon = strdup(buf); + free(path); + } if (icon) { ic = e_util_icon_add(icon, evas); @@ -339,9 +347,18 @@ if (!name) continue; module = evas_hash_find(modules, name); if ((!module) || (!module->enabled) || (!module->icon)) continue; + /* icon = efreet_icon_path_find(e_config->icon_theme, module->icon, "24x24"); if ((!icon) && (module->orig_path)) + { + path = ecore_file_dir_get(module->orig_path); + snprintf(buf, sizeof(buf), "%s/%s.edj", path, module->icon); + icon = strdup(buf); + free(path); + } + */ + if (module->orig_path) { path = ecore_file_dir_get(module->orig_path); snprintf(buf, sizeof(buf), "%s/%s.edj", path, module->icon); ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs