layout: Add text alias description as default.
authorwoochan lee <wc0917.lee@samsung.com>
Tue, 10 Mar 2015 07:40:53 +0000 (16:40 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Tue, 10 Mar 2015 07:58:11 +0000 (16:58 +0900)
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

index 6bf4f1b..4b8513e 100644 (file)
@@ -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)
 {