From: barbieri Date: Tue, 9 Oct 2012 20:20:28 +0000 (+0000) Subject: hard dep on efreet. X-Git-Tag: upstream/0.1~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ef04c8cfb89e36eddad295f4b909dc60d087c02;p=platform%2Fupstream%2Fterminology.git hard dep on efreet. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@77684 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index 230cb2c..a8772bc 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,7 @@ requirements="\ ecore-input >= 1.7.0 \ ecore-imf >= 1.7.0 \ ecore-imf-evas >= 1.7.0 \ + efreet >= 1.7.0 " PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}]) diff --git a/src/bin/config.c b/src/bin/config.c index be60c6f..ae57790 100644 --- a/src/bin/config.c +++ b/src/bin/config.c @@ -1,6 +1,7 @@ #include "private.h" #include +#include #include "config.h" #define CONF_VER 1 @@ -12,27 +13,7 @@ static Eet_Data_Descriptor *edd_base = NULL; static const char * _config_home_get(void) { -#ifdef ELM_EFREET return efreet_config_home_get(); -#else - static char path[PATH_MAX] = ""; - const char *v = getenv("XDG_CONFIG_HOME"); - if (v) eina_strlcpy(path, v, sizeof(path)); - else - { - char homepath[PATH_MAX]; - if (homedir_get(homepath, sizeof(homepath))) - snprintf(path, sizeof(path), "%s/.config", homepath); - else - { - if (!v) v = getenv("XDG_RUNTIME_DIR"); - if (!v) v = getenv("TMPDIR"); - if (!v) v = "/tmp"; - eina_strlcpy(path, v, sizeof(path)); - } - } - return path; -#endif } void @@ -41,6 +22,7 @@ config_init(void) Eet_Data_Descriptor_Class eddc; elm_need_efreet(); + efreet_init(); eet_eina_stream_data_descriptor_class_set (&eddc, sizeof(eddc), "Config", sizeof(Config)); @@ -106,6 +88,8 @@ config_shutdown(void) eet_data_descriptor_free(edd_base); edd_base = NULL; } + + efreet_shutdown(); } void