jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=160b6d202f9a978271df8f530aca8530aa5d20b0

commit 160b6d202f9a978271df8f530aca8530aa5d20b0
Author: YeongJong Lee <[email protected]>
Date:   Mon Feb 26 21:21:57 2018 +0900

    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
---
 src/lib/elementary/elm_part_helper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) \

-- 


Reply via email to