summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-04-01 22:06:20 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-02 11:02:27 +0200
commit683958ee68bd36f5c7b95272d621b6fbaa3f4fb6 (patch)
treed55e0f6ac71c215b70e3f325c486f05c434e7f34
parentfe54a4dd1ac780b7af37d7fe735959283a5cb4bc (diff)
downloadefl-683958ee68bd36f5c7b95272d621b6fbaa3f4fb6.tar.gz
eo: Correctly name Realized classes.
The previous preprocessor rule was generating strings like "\"Efl.App\"_Realized. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8527
-rw-r--r--src/lib/eo/eo_internal.h2
-rw-r--r--src/tests/ecore/efl_app_test_loop.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/eo/eo_internal.h b/src/lib/eo/eo_internal.h
index 7c57e9839c..9e2980914a 100644
--- a/src/lib/eo/eo_internal.h
+++ b/src/lib/eo/eo_internal.h
@@ -47,7 +47,7 @@ EAPI void ___efl_ref2_reset(const Eo *obj_id);
#define EFL_CLASS_SIMPLE_CLASS(FUNC, NAME, ABSTRACT_CLASS) \
static const Efl_Class_Description FUNC ##_realized_class_desc = { \
EO_VERSION, \
- #NAME"_Realized", \
+ NAME "_Realized", \
EFL_CLASS_TYPE_REGULAR, \
0, NULL, NULL, NULL \
}; \
diff --git a/src/tests/ecore/efl_app_test_loop.c b/src/tests/ecore/efl_app_test_loop.c
index 88b4dd2fd5..7b8dafccf3 100644
--- a/src/tests/ecore/efl_app_test_loop.c
+++ b/src/tests/ecore/efl_app_test_loop.c
@@ -93,8 +93,15 @@ EFL_START_TEST(efl_app_test_efl_loop_concentric)
}
EFL_END_TEST
+EFL_START_TEST(efl_loop_test_realized_name)
+{
+ ck_assert_str_eq(efl_class_name_get(efl_loop_realized_class_get()), "Efl.Loop_Realized");
+}
+EFL_END_TEST
+
void efl_app_test_efl_loop(TCase *tc)
{
tcase_add_test(tc, efl_app_test_efl_loop_register);
tcase_add_test(tc, efl_app_test_efl_loop_concentric);
+ tcase_add_test(tc, efl_loop_test_realized_name);
}