Enlightenment CVS committal
Author : handyande
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_config
Modified Files:
Ecore_Config.h ecore_config.c ecore_config_extra.c
Log Message:
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 :)
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/Ecore_Config.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- Ecore_Config.h 1 Dec 2004 00:49:18 -0000 1.40
+++ Ecore_Config.h 1 Dec 2004 23:07:42 -0000 1.41
@@ -244,6 +244,8 @@
/* 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 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_get(const char *key);
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- ecore_config.c 27 Nov 2004 23:14:23 -0000 1.53
+++ ecore_config.c 1 Dec 2004 23:07:42 -0000 1.54
@@ -1472,11 +1472,17 @@
__ecore_config_bundle_local->data = list;
path = ecore_config_theme_default_path_get();
+ ecore_config_string_default("/e/themes/search_path", path);
if (path)
+ free(path);
+
+ list = ecore_config_get("/e/themes/search_path");
+ if (list)
{
- ecore_config_string_default("/e/themes/search_path", path);
- free(path);
+ list->flags |= PF_SYSTEM;
+ list->flags &= ~PF_MODIFIED;
}
+
return _ecore_config_system_load();
}
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config_extra.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ecore_config_extra.c 1 Dec 2004 00:49:18 -0000 1.3
+++ ecore_config_extra.c 1 Dec 2004 23:07:43 -0000 1.4
@@ -440,6 +440,7 @@
{
char *search_path, *loc, *new_search_path;
int len, search_len;
+ Ecore_Config_Prop *prop;
if (!path)
return ECORE_CONFIG_ERR_NODATA;
@@ -458,6 +459,10 @@
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 &= ~PF_MODIFIED;
+
free(new_search_path);
return ECORE_CONFIG_ERR_SUCC;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs