forked from enlightenment/efl
A few fixes ready for some more E config things
recommend that folk remove their config.eets of convenient, doing so will remove the e tab from examine :) SVN revision: 12326
This commit is contained in:
parent
3e490d9197
commit
b186e3a476
|
@ -244,6 +244,8 @@ extern "C"
|
||||||
/* FIXME: this should only be included if evas is present */
|
/* FIXME: this should only be included if evas is present */
|
||||||
EAPI int ecore_config_evas_font_path_apply(Evas * evas);
|
EAPI int ecore_config_evas_font_path_apply(Evas * evas);
|
||||||
EAPI char *ecore_config_theme_search_path_get(void);
|
EAPI char *ecore_config_theme_search_path_get(void);
|
||||||
|
EAPI int ecore_config_theme_search_path_append(char *append);
|
||||||
|
|
||||||
EAPI char *ecore_config_theme_default_path_get(void);
|
EAPI char *ecore_config_theme_default_path_get(void);
|
||||||
EAPI char *ecore_config_theme_with_path_from_name_get(char *name);
|
EAPI char *ecore_config_theme_with_path_from_name_get(char *name);
|
||||||
EAPI char *ecore_config_theme_with_path_get(const char *key);
|
EAPI char *ecore_config_theme_with_path_get(const char *key);
|
||||||
|
|
|
@ -1472,11 +1472,17 @@ ecore_config_init(char *name)
|
||||||
__ecore_config_bundle_local->data = list;
|
__ecore_config_bundle_local->data = list;
|
||||||
|
|
||||||
path = ecore_config_theme_default_path_get();
|
path = ecore_config_theme_default_path_get();
|
||||||
|
ecore_config_string_default("/e/themes/search_path", path);
|
||||||
if (path)
|
if (path)
|
||||||
|
free(path);
|
||||||
|
|
||||||
|
list = ecore_config_get("/e/themes/search_path");
|
||||||
|
if (list)
|
||||||
{
|
{
|
||||||
ecore_config_string_default("/e/themes/search_path", path);
|
list->flags |= PF_SYSTEM;
|
||||||
free(path);
|
list->flags &= ~PF_MODIFIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _ecore_config_system_load();
|
return _ecore_config_system_load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -440,6 +440,7 @@ ecore_config_theme_search_path_append(char *path)
|
||||||
{
|
{
|
||||||
char *search_path, *loc, *new_search_path;
|
char *search_path, *loc, *new_search_path;
|
||||||
int len, search_len;
|
int len, search_len;
|
||||||
|
Ecore_Config_Prop *prop;
|
||||||
|
|
||||||
if (!path)
|
if (!path)
|
||||||
return ECORE_CONFIG_ERR_NODATA;
|
return ECORE_CONFIG_ERR_NODATA;
|
||||||
|
@ -458,6 +459,10 @@ ecore_config_theme_search_path_append(char *path)
|
||||||
strncat(new_search_path, path, len);
|
strncat(new_search_path, path, len);
|
||||||
|
|
||||||
ecore_config_string_set("/e/themes/search_path", new_search_path);
|
ecore_config_string_set("/e/themes/search_path", new_search_path);
|
||||||
|
prop = ecore_config_get("/e/themes/search_path");
|
||||||
|
if (prop)
|
||||||
|
prop->flags &= ~PF_MODIFIED;
|
||||||
|
|
||||||
free(new_search_path);
|
free(new_search_path);
|
||||||
|
|
||||||
return ECORE_CONFIG_ERR_SUCC;
|
return ECORE_CONFIG_ERR_SUCC;
|
||||||
|
|
Loading…
Reference in New Issue