[Pkg-e-commits] [SCM] Core abstraction layer for enlightenment DR 0.17 branch, upstream-vcs, updated. fbccf3b6cae3945e0db311041de91f346fccbae1

pfritz pfritz at alioth.debian.org
Mon Jun 9 12:45:18 UTC 2008


The following commit has been merged in the upstream-vcs branch:
commit fbccf3b6cae3945e0db311041de91f346fccbae1
Author: pfritz <pfritz>
Date:   Sun Jun 8 12:38:56 2008 +0000

    add constness; formatting

diff --git a/src/lib/ecore_config/Ecore_Config.h b/src/lib/ecore_config/Ecore_Config.h
index ccb8e0a..6733d7b 100644
--- a/src/lib/ecore_config/Ecore_Config.h
+++ b/src/lib/ecore_config/Ecore_Config.h
@@ -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);
diff --git a/src/lib/ecore_config/ecore_config_extra.c b/src/lib/ecore_config/ecore_config_extra.c
index b30efc3..7981363 100644
--- a/src/lib/ecore_config/ecore_config_extra.c
+++ b/src/lib/ecore_config/ecore_config_extra.c
@@ -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);
 

-- 
Core abstraction layer for enlightenment DR 0.17



More information about the Pkg-e-commits mailing list