add constness; formatting

SVN revision: 34772
This commit is contained in:
Peter Wehrfritz 2008-06-08 12:38:56 +00:00
parent c5623c01b3
commit c51a00a7d3
2 changed files with 5 additions and 5 deletions

View File

@ -253,7 +253,7 @@ extern "C"
/* FIXME: this should only be included if evas is present */
EAPI int ecore_config_evas_font_path_apply(Evas *evas);
EAPI char *ecore_config_theme_search_path_get(void);
EAPI int ecore_config_theme_search_path_append(char *append);
EAPI int ecore_config_theme_search_path_append(const char *append);
EAPI char *ecore_config_theme_default_path_get(void);
EAPI char *ecore_config_theme_with_path_from_name_get(char *name);

View File

@ -407,7 +407,7 @@ ecore_config_theme_search_path_get(void)
* @c ECORE_CONFIG_ERR_FAIL is returned if @p path is @c NULL.
*/
int
ecore_config_theme_search_path_append(char *path)
ecore_config_theme_search_path_append(const char *path)
{
char *search_path, *loc, *new_search_path;
int len, search_len;
@ -430,9 +430,9 @@ ecore_config_theme_search_path_append(char *path)
strncat(new_search_path, path, len);
ecore_config_string_set("/e/themes/search_path", new_search_path);
prop = ecore_config_get("/e/themes/search_path");
if (prop)
prop->flags &= ~ECORE_CONFIG_FLAG_MODIFIED;
prop = ecore_config_get("/e/themes/search_path");
if (prop)
prop->flags &= ~ECORE_CONFIG_FLAG_MODIFIED;
free(new_search_path);