summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-06 15:12:21 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 09:57:24 +0900
commitccc3efd77d82db9aef6d6c19d21ec8a5d69ca994 (patch)
treed45a8c4e4898b2937a8992a79710e26158d23810
parent778c5afb3f29fe0763d875d31f6411b24cbb997d (diff)
downloadefl-ccc3efd77d82db9aef6d6c19d21ec8a5d69ca994.tar.gz
elm: Fix examples/tests using elementary_config
elementary_config.h should not even exist. It's been hijacked as a private header for elementary, but all "real" configuration is stored in efl's main config.h now.
-rw-r--r--src/lib/elementary/elementary_config.h3
-rw-r--r--src/tests/elementary/elm_code_test_widget.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/elementary/elementary_config.h b/src/lib/elementary/elementary_config.h
index 459ebd0213..788b02530e 100644
--- a/src/lib/elementary/elementary_config.h
+++ b/src/lib/elementary/elementary_config.h
@@ -8,6 +8,8 @@
*/
#define ELM_CONFIG_ICON_THEME_ELEMENTARY "_Elementary_Icon_Theme"
+
+#if defined(ELEMENTARY_BUILD) || defined(ELM_INTERNAL_API_ARGESFSDFEFC)
#define ELM_WIDGET_PROTECTED
#define ELM_WIDGET_BETA
#define EFL_CANVAS_OBJECT_PROTECTED
@@ -22,3 +24,4 @@
#define EFL_ACCESS_SELECTION_BETA
#define EFL_ACCESS_TEXT_BETA
#define EFL_ACCESS_VALUE_BETA
+#endif
diff --git a/src/tests/elementary/elm_code_test_widget.c b/src/tests/elementary/elm_code_test_widget.c
index 6195b5cf45..3a5860aeb0 100644
--- a/src/tests/elementary/elm_code_test_widget.c
+++ b/src/tests/elementary/elm_code_test_widget.c
@@ -1,9 +1,9 @@
+#define ELM_INTERNAL_API_ARGESFSDFEFC
+
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
-#define ELM_INTERNAL_API_ARGESFSDFEFC
-
#include "elm_suite.h"
#include "Elementary.h"