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
This commit is contained in:
Christopher Michael 2007-10-28 07:37:25 +00:00
parent c86164c9cc
commit 802ead030f
1 changed files with 18 additions and 1 deletions

View File

@ -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);