From 802ead030f13489c98670873e22aa0a5b9be0117 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sun, 28 Oct 2007 07:37:25 +0000 Subject: [PATCH] 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. SVN revision: 32183 --- src/bin/e_int_config_modules.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/bin/e_int_config_modules.c b/src/bin/e_int_config_modules.c index 2cc7d0638..e192e2147 100644 --- a/src/bin/e_int_config_modules.c +++ b/src/bin/e_int_config_modules.c @@ -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 @@ _fill_avail_list(E_Config_Dialog_Data *cfdata) 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 @@ _fill_avail_list(E_Config_Dialog_Data *cfdata) 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,6 +347,7 @@ _fill_loaded_list(E_Config_Dialog_Data *cfdata) 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)) @@ -348,6 +357,14 @@ _fill_loaded_list(E_Config_Dialog_Data *cfdata) 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);