summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2018-02-08 11:37:51 +0200
committerDaniel Hirt <hirt.danny@gmail.com>2018-02-08 11:37:51 +0200
commitb380e63b0769c664c5a00be0879fddab9b0c98a5 (patch)
treeb5d622ce28b696d2425c6a1559d0c75b9e1c2f4d
parent08d86d3941ee7d4f5e89520fb8d29870a903300b (diff)
efl_part: call Efl.Text of each class' part
Summary: Macro ELM_PART_TEXT_DEFAULT_IMPLEMENT calls super class' Efl.Text interface, rather than this class. Reviewers: jpeg, woohyun, Jaehyun_Cho, herdsman Subscribers: cedric, id213sin Differential Revision: https://phab.enlightenment.org/D5799
-rw-r--r--src/lib/elementary/elm_part_helper.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_part_helper.h b/src/lib/elementary/elm_part_helper.h
index 9b63e94e62..d135dda6c5 100644
--- a/src/lib/elementary/elm_part_helper.h
+++ b/src/lib/elementary/elm_part_helper.h
@@ -178,34 +178,34 @@ _ ## full ## _efl_text_markup_markup_set(Eo *obj, void *_pd EINA_UNUSED, const c
178EOLIAN static void \ 178EOLIAN static void \
179_ ## type ## _efl_text_text_set(Eo *obj, typedata *sd EINA_UNUSED, const char *text) \ 179_ ## type ## _efl_text_text_set(Eo *obj, typedata *sd EINA_UNUSED, const char *text) \
180{ \ 180{ \
181 efl_text_set(efl_part(efl_super(obj, MY_CLASS), efl_ui_widget_default_text_part_get(obj)), text); \ 181 efl_text_set(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), text); \
182} \ 182} \
183EOLIAN static const char * \ 183EOLIAN static const char * \
184_ ## type ## _efl_text_text_get(Eo *obj, typedata *sd EINA_UNUSED) \ 184_ ## type ## _efl_text_text_get(Eo *obj, typedata *sd EINA_UNUSED) \
185{ \ 185{ \
186 return efl_text_get(efl_part(efl_super(obj, MY_CLASS), efl_ui_widget_default_text_part_get(obj))); \ 186 return efl_text_get(efl_part(obj, efl_ui_widget_default_text_part_get(obj))); \
187} \ 187} \
188EOLIAN static void \ 188EOLIAN static void \
189_ ## type ## _efl_ui_translatable_translatable_text_set(Eo *obj, typedata *sd EINA_UNUSED, const char *label, const char *domain) \ 189_ ## type ## _efl_ui_translatable_translatable_text_set(Eo *obj, typedata *sd EINA_UNUSED, const char *label, const char *domain) \
190{ \ 190{ \
191 efl_ui_translatable_text_set(efl_part(efl_super(obj, MY_CLASS), efl_ui_widget_default_text_part_get(obj)), label, domain); \ 191 efl_ui_translatable_text_set(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), label, domain); \
192} \ 192} \
193EOLIAN static const char * \ 193EOLIAN static const char * \
194_ ## type ## _efl_ui_translatable_translatable_text_get(Eo *obj, typedata *sd EINA_UNUSED, const char **domain) \ 194_ ## type ## _efl_ui_translatable_translatable_text_get(Eo *obj, typedata *sd EINA_UNUSED, const char **domain) \
195{ \ 195{ \
196 return efl_ui_translatable_text_get(efl_part(efl_super(obj, MY_CLASS), efl_ui_widget_default_text_part_get(obj)), domain); \ 196 return efl_ui_translatable_text_get(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), domain); \
197} 197}
198 198
199#define ELM_PART_MARKUP_DEFAULT_IMPLEMENT(type, typedata) \ 199#define ELM_PART_MARKUP_DEFAULT_IMPLEMENT(type, typedata) \
200EOLIAN static const char * \ 200EOLIAN static const char * \
201_ ## type ## _efl_text_markup_markup_get(Eo *obj, typedata *sd EINA_UNUSED) \ 201_ ## type ## _efl_text_markup_markup_get(Eo *obj, typedata *sd EINA_UNUSED) \
202{ \ 202{ \
203 return efl_text_markup_get(efl_part(efl_super(obj, MY_CLASS), efl_ui_widget_default_text_part_get(obj))); \ 203 return efl_text_markup_get(efl_part(obj, efl_ui_widget_default_text_part_get(obj))); \
204} \ 204} \
205EOLIAN static void \ 205EOLIAN static void \
206_ ## type ## _efl_text_markup_markup_set(Eo *obj, typedata *sd EINA_UNUSED, const char *markup) \ 206_ ## type ## _efl_text_markup_markup_set(Eo *obj, typedata *sd EINA_UNUSED, const char *markup) \
207{ \ 207{ \
208 efl_text_markup_set(efl_part(efl_super(obj, MY_CLASS), efl_ui_widget_default_text_part_get(obj)), markup); \ 208 efl_text_markup_set(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), markup); \
209} 209}
210 210
211#endif 211#endif