hermet pushed a commit to branch elementary-1.13. http://git.enlightenment.org/core/elementary.git/commit/?id=0a4eaa99a5a0daf75af87884f4e16f34dd716967
commit 0a4eaa99a5a0daf75af87884f4e16f34dd716967 Author: woochan lee <wc0917....@samsung.com> Date: Tue Mar 10 16:40:53 2015 +0900 layout: Add text alias description as default. Summary: The _text_aliases value exists. but never use here on layout for text part aliases. in addition, i think that "elm,text" should be the default part for text set. Reviewers: seoz, woohyun, JackDanielZ, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D2116 --- src/lib/elm_layout.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c index 6bf4f1b..4b8513e 100644 --- a/src/lib/elm_layout.c +++ b/src/lib/elm_layout.c @@ -28,6 +28,12 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = { {NULL, NULL} }; +static const Elm_Layout_Part_Alias_Description _text_aliases[] = +{ + {"default", "elm.text"}, + {NULL, NULL} +}; + /* these are data operated by layout's class functions internally, and * should not be messed up by inhering classes */ typedef struct _Elm_Layout_Sub_Object_Data Elm_Layout_Sub_Object_Data; @@ -573,7 +579,7 @@ _edje_signal_callback(void *data, EOLIAN static const Elm_Layout_Part_Alias_Description* _elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *_pd EINA_UNUSED) { - return NULL; + return _text_aliases; } EOLIAN static const Elm_Layout_Part_Alias_Description* @@ -1633,12 +1639,6 @@ _elm_layout_part_cursor_engine_only_get(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Da return !elm_object_cursor_theme_search_enabled_get(pc->obj); } -static const Elm_Layout_Part_Alias_Description _text_aliases[] = -{ - {"default", "elm.text"}, - {NULL, NULL} -}; - EOLIAN static Eina_Bool _elm_layout_edje_object_can_access_set(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *sd, Eina_Bool can_access) { --