summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-03-10 16:40:53 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-03-10 16:40:53 +0900
commit39f60f05c0bd5281d7fee6b8767ac176aebea47c (patch)
tree77f1cb6908a9d3eba532ebc0c77733a22250eb9e
parente052a67f0eeebe88caddbddf2625c2dc6ae3d3a9 (diff)
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
-rw-r--r--src/lib/elm_layout.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c
index 5f9ca8efe..5c3e01b46 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[] = {
28 {NULL, NULL} 28 {NULL, NULL}
29}; 29};
30 30
31static const Elm_Layout_Part_Alias_Description _text_aliases[] =
32{
33 {"default", "elm.text"},
34 {NULL, NULL}
35};
36
31/* these are data operated by layout's class functions internally, and 37/* these are data operated by layout's class functions internally, and
32 * should not be messed up by inhering classes */ 38 * should not be messed up by inhering classes */
33typedef struct _Elm_Layout_Sub_Object_Data Elm_Layout_Sub_Object_Data; 39typedef struct _Elm_Layout_Sub_Object_Data Elm_Layout_Sub_Object_Data;
@@ -576,7 +582,7 @@ _edje_signal_callback(void *data,
576EOLIAN static const Elm_Layout_Part_Alias_Description* 582EOLIAN static const Elm_Layout_Part_Alias_Description*
577_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *_pd EINA_UNUSED) 583_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
578{ 584{
579 return NULL; 585 return _text_aliases;
580} 586}
581 587
582EOLIAN static const Elm_Layout_Part_Alias_Description* 588EOLIAN 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
1636 return !elm_object_cursor_theme_search_enabled_get(pc->obj); 1642 return !elm_object_cursor_theme_search_enabled_get(pc->obj);
1637} 1643}
1638 1644
1639static const Elm_Layout_Part_Alias_Description _text_aliases[] =
1640{
1641 {"default", "elm.text"},
1642 {NULL, NULL}
1643};
1644
1645EOLIAN static Eina_Bool 1645EOLIAN static Eina_Bool
1646_elm_layout_edje_object_can_access_set(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *sd, Eina_Bool can_access) 1646_elm_layout_edje_object_can_access_set(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *sd, Eina_Bool can_access)
1647{ 1647{