summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-16 19:04:13 +0100
committerdavemds <dave@gurumeditation.it>2014-02-16 19:04:13 +0100
commit690a60c3ccf1d2320628587a0da7b8d0d0ede83b (patch)
tree8a116ac0ddab490e649ded0b654bf81d016f6e87
parent5e493a0851780ca42393976e24ed57c80e4d2644 (diff)
Emotion test: no need to search for a folder that no more exists
-rw-r--r--src/tests/emotion/emotion_test_main.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/tests/emotion/emotion_test_main.c b/src/tests/emotion/emotion_test_main.c
index f3e21cadf1..e78b50dab8 100644
--- a/src/tests/emotion/emotion_test_main.c
+++ b/src/tests/emotion/emotion_test_main.c
@@ -116,22 +116,6 @@ theme_get(void)
116 return PACKAGE_DATA_DIR"/data/theme.edj"; 116 return PACKAGE_DATA_DIR"/data/theme.edj";
117} 117}
118 118
119static const char *
120fonts_dir_get(void)
121{
122 static int is_local = -1;
123 if (is_local == -1)
124 {
125 struct stat st;
126 is_local = (stat(PACKAGE_BUILD_DIR"/src/tests/emotion/data/fonts", &st) == 0);
127 }
128
129 if (is_local)
130 return PACKAGE_BUILD_DIR"/src/tests/emotion/data/fonts";
131 else
132 return PACKAGE_DATA_DIR"/data/fonts";
133}
134
135void 119void
136bg_setup(void) 120bg_setup(void)
137{ 121{
@@ -766,7 +750,6 @@ main(int argc, char **argv)
766 evas = ecore_evas_get(ecore_evas); 750 evas = ecore_evas_get(ecore_evas);
767 evas_image_cache_set(evas, 8 * 1024 * 1024); 751 evas_image_cache_set(evas, 8 * 1024 * 1024);
768 evas_font_cache_set(evas, 1 * 1024 * 1024); 752 evas_font_cache_set(evas, 1 * 1024 * 1024);
769 evas_font_path_append(evas, fonts_dir_get());
770 753
771 emotion_init(); 754 emotion_init();
772 755