summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongJong Lee <yj34.lee@samsung.com>2018-02-26 21:21:57 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-02-26 21:21:57 +0900
commit160b6d202f9a978271df8f530aca8530aa5d20b0 (patch)
tree3ffb2c67b942fb8ba2b5528bb4aba500a068fa8a
parentdca1581b032014845d1ca590aaad101dd590a5bf (diff)
downloadefl-160b6d202f9a978271df8f530aca8530aa5d20b0.tar.gz
elm_part: use TYPE _CLASS instead of MY_CLASS
Summary: legacy part do not have MY_CLASS. if ELM_PART_OVERRIDE_PARTIAL is used for legacy part, it call efl_super(non-legacy class). we need super of TYPE _CLASS instead of MY_CLASS. Test Plan: WITH D5818 1. elementary_test -to progressbar 2. check that efl_part is working in _progressbar_part_value_set Reviewers: cedric, woohyun, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5819
-rw-r--r--src/lib/elementary/elm_part_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_part_helper.h b/src/lib/elementary/elm_part_helper.h
index d135dda6c5..1402f49adb 100644
--- a/src/lib/elementary/elm_part_helper.h
+++ b/src/lib/elementary/elm_part_helper.h
@@ -79,7 +79,7 @@ ELM_PART_IMPLEMENT(const Efl_Class *part_klass, const Eo *obj, const char *part)
EINA_SAFETY_ON_NULL_RETURN_VAL(part, NULL); \
if (_is_part_cb(obj, part)) \
return ELM_PART_IMPLEMENT(TYPE ## _PART_CLASS, obj, part); \
- return efl_part(efl_super(obj, MY_CLASS), part); \
+ return efl_part(efl_super(obj, TYPE ## _CLASS), part); \
}
#define ELM_PART_OVERRIDE(type, TYPE, typedata) \