From 39f60f05c0bd5281d7fee6b8767ac176aebea47c Mon Sep 17 00:00:00 2001 From: woochan lee Date: Tue, 10 Mar 2015 16:40:53 +0900 Subject: [PATCH] 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 5f9ca8e..5c3e01b 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; @@ -576,7 +582,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* @@ -1636,12 +1642,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) { -- 2.7.4