diff options
author | Cedric Bail <cedric@osg.samsung.com> | 2016-03-23 22:48:45 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-03-24 11:23:11 -0700 |
commit | 14ec825aa9ed9c6ede79d1729fdb291285b3bd6d (patch) | |
tree | eeed9a278279e6d05839468f74d53043aa9fe93e | |
parent | 1db421c33e1a7fea6f159e1296c99bee87d0b664 (diff) | |
download | efl-14ec825aa9ed9c6ede79d1729fdb291285b3bd6d.tar.gz |
elementary: search ELM_DATA_DIR environment for themes.
-rw-r--r-- | src/lib/elementary/elm_theme.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_theme.c b/src/lib/elementary/elm_theme.c index 4006bc6088..4b357d3262 100644 --- a/src/lib/elementary/elm_theme.c +++ b/src/lib/elementary/elm_theme.c @@ -93,6 +93,15 @@ _elm_theme_file_item_add(Elm_Theme_Files *files, const char *item, Eina_Bool pre _elm_theme_item_finalize(files, item, f, prepend, istheme); eina_strbuf_reset(buf); + + 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); @@ -302,7 +311,7 @@ _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *grou if (edje_object_mmap_set(o, file, buf2)) return EINA_TRUE; else { - DBG("could not set theme group '%s' from file '%s': %s", + INF("could not set theme group '%s' from file '%s': %s", buf2, eina_file_filename_get(file), edje_load_error_str(edje_object_load_error_get(o))); @@ -321,13 +330,13 @@ _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *grou { if (edje_object_mmap_set(o, file, buf2)) { - DBG("could not set theme style '%s', fallback to default", + INF("could not set theme style '%s', fallback to default", style); return EINA_TRUE; } else { - DBG("could not set theme group '%s' from file '%s': %s", + INF("could not set theme group '%s' from file '%s': %s", buf2, eina_file_filename_get(file), edje_load_error_str(edje_object_load_error_get(o))); |