summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-03 17:27:42 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-03 17:27:42 +0900
commitabeeb11b19a30a5721389bbd9699f92d0aca76a4 (patch)
treec6c0880a98dfdce176ce98004fc04afa652cbe57
parent7c01254ba79afcca4d02b16fd2841819c6acf2b4 (diff)
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
-rw-r--r--src/lib/elementary/elm_theme.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/elementary/elm_theme.c b/src/lib/elementary/elm_theme.c
index 96c15f04b5..542316b710 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
96 96
97 eina_strbuf_append_printf(buf, 97 eina_strbuf_append_printf(buf,
98 "%s/themes/%s.edj", 98 "%s/themes/%s.edj",
99 getenv("ELM_DATA_DIR"), item);
100 f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
101 _elm_theme_item_finalize(files, item, f, prepend, istheme);
102
103 eina_strbuf_reset(buf);
104
105 eina_strbuf_append_printf(buf,
106 "%s/themes/%s.edj",
107 _elm_data_dir, item); 99 _elm_data_dir, item);
108 f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE); 100 f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
109 /* Finalize will be done by the common one */ 101 /* Finalize will be done by the common one */