forked from enlightenment/enlightenment
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:
parent
c86164c9cc
commit
802ead030f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue