ctxpopup: add color_class parent-child relationship 56/166656/3
authorJinYong Park <j4939.park@samsung.com>
Thu, 11 Jan 2018 10:10:16 +0000 (19:10 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 11 Jan 2018 11:22:01 +0000 (11:22 +0000)
@tizen_fix

Change-Id: I6c36addd841a4c7e83083b61c6bcc1bb1e271ef0
Signed-off-by: JinYong Park <j4939.park@samsung.com>
src/lib/elementary/elc_ctxpopup.c

index ccac015..09ae202 100644 (file)
@@ -1346,6 +1346,11 @@ _elm_ctxpopup_item_insert_before(Eo *obj, Elm_Ctxpopup_Data *sd, Elm_Object_Item
 
    if (sd->visible) elm_layout_sizing_eval(obj);
 
+   /* TIZEN_ONLY(20170417): add color_class parent-child relationship */
+   Elm_Widget_Item_Data *wd = efl_data_scope_get(item->list_item, ELM_WIDGET_ITEM_CLASS);
+   VIEW(item) = wd->view;
+   /* END */
+
    return eo_item;
 }
 
@@ -1372,6 +1377,11 @@ _elm_ctxpopup_item_insert_after(Eo *obj, Elm_Ctxpopup_Data *sd, Elm_Object_Item
 
    if (sd->visible) elm_layout_sizing_eval(obj);
 
+   /* TIZEN_ONLY(20170417): add color_class parent-child relationship */
+   Elm_Widget_Item_Data *wd = efl_data_scope_get(item->list_item, ELM_WIDGET_ITEM_CLASS);
+   VIEW(item) = wd->view;
+   /* END */
+
    return eo_item;
 }
 
@@ -1392,6 +1402,11 @@ _elm_ctxpopup_item_append(Eo *obj, Elm_Ctxpopup_Data *sd, const char *label, Eva
 
    if (sd->visible) elm_layout_sizing_eval(obj);
 
+   /* TIZEN_ONLY(20170417): add color_class parent-child relationship */
+   Elm_Widget_Item_Data *wd = efl_data_scope_get(item->list_item, ELM_WIDGET_ITEM_CLASS);
+   VIEW(item) = wd->view;
+   /* END */
+
    return eo_item;
 }
 
@@ -1508,6 +1523,11 @@ _elm_ctxpopup_item_prepend(Eo *obj, Elm_Ctxpopup_Data *sd, const char *label, Ev
 
    if (sd->visible) elm_layout_sizing_eval(obj);
 
+   /* TIZEN_ONLY(20170417): add color_class parent-child relationship */
+   Elm_Widget_Item_Data *wd = efl_data_scope_get(item->list_item, ELM_WIDGET_ITEM_CLASS);
+   VIEW(item) = wd->view;
+   /* END */
+
    return eo_item;
 }