raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=abeeb11b19a30a5721389bbd9699f92d0aca76a4

commit abeeb11b19a30a5721389bbd9699f92d0aca76a4
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Aug 3 17:27:42 2016 +0900

    elm theme - don't use empty env vars eina_prefix handles anyway
    
    in 14ec825aa9ed9c6ede79d1729fdb291285b3bd6d cedric added trying
    ELM_DATA_DIR env var explicitly for looking for themes. first if this
    is NULL then we look in a bogus directory (null). secondly eina_prefix
    already takes care of env vars like thsi as part of figuring out
    prefix with correct namespace etc. so this just is a bug as opposed to
    anything useful and the CORRECt implementation is already done in
    eina_prefix.
    
    @fix
---
 src/lib/elementary/elm_theme.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/lib/elementary/elm_theme.c b/src/lib/elementary/elm_theme.c
index 96c15f0..542316b 100644
--- a/src/lib/elementary/elm_theme.c
+++ b/src/lib/elementary/elm_theme.c
@@ -96,14 +96,6 @@ _elm_theme_file_item_add(Elm_Theme_Files *files, const char 
*item, Eina_Bool pre
 
         eina_strbuf_append_printf(buf,
                                   "%s/themes/%s.edj",
-                                  getenv("ELM_DATA_DIR"), item);
-        f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
-        _elm_theme_item_finalize(files, item, f, prepend, istheme);
-
-        eina_strbuf_reset(buf);
-
-        eina_strbuf_append_printf(buf,
-                                  "%s/themes/%s.edj",
                                   _elm_data_dir, item);
         f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
         /* Finalize will be done by the common one */

-- 


Reply via email to