summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJEONGHYUN YUN <jh0506.yun@samsung.com>2017-08-10 14:13:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-10 14:42:08 +0900
commit8546ff727f9ee60ac0a662611d606e0d608e8c3d (patch)
tree2f6bbb41a7d48fd4d2588c92fc1d4a5bfd627b72 /src/lib
parentbf0b3e0b75f5c6ebc5cb96211b3b21235422e358 (diff)
elm_ctxpopup: Implemented elm_widget_item_part_content_unset for elm_ctxpopup_item
Summary: ctxpopup item have elm_list item internally. item_part_content_unset need to pass on content part to elm_list item. Test Plan: 1. launch elementary_test - ctxpopup 2. click Ctxpopup with part text & content function 3. press "Icon Set" and press "Icon Unset" Reviewers: jpeg, woohyun, herb, Blackmole Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5018
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c25
-rw-r--r--src/lib/elementary/elm_ctxpopup_item.eo1
2 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index ecf418fdb2..f2010b515f 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -899,6 +899,31 @@ _elm_ctxpopup_item_elm_widget_item_part_content_get(Eo *eo_ctxpopup_it EINA_UNUS
899 return elm_object_item_part_content_get(ctxpopup_it->list_item, "start"); 899 return elm_object_item_part_content_get(ctxpopup_it->list_item, "start");
900} 900}
901 901
902EOLIAN static Evas_Object *
903_elm_ctxpopup_item_elm_widget_item_part_content_unset(Eo *eo_ctxpopup_it EINA_UNUSED,
904 Elm_Ctxpopup_Item_Data *ctxpopup_it,
905 const char *part)
906{
907 Evas_Object *content = NULL;
908
909 if ((part) && (strcmp(part, "icon"))
910 && (strcmp(part, "start"))
911 && (strcmp(part, "end"))) return NULL;
912
913 ELM_CTXPOPUP_DATA_GET(WIDGET(ctxpopup_it), sd);
914
915 if ((part) && (!strcmp(part, "end")))
916 content = elm_object_item_part_content_unset(ctxpopup_it->list_item, "end");
917 else
918 content = elm_object_item_part_content_unset(ctxpopup_it->list_item, "start");
919
920 sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
921
922 if (sd->visible) elm_layout_sizing_eval(WIDGET(ctxpopup_it));
923
924 return content;
925}
926
902EOLIAN static void 927EOLIAN static void
903_elm_ctxpopup_item_elm_widget_item_disable(Eo *eo_ctxpopup_it, 928_elm_ctxpopup_item_elm_widget_item_disable(Eo *eo_ctxpopup_it,
904 Elm_Ctxpopup_Item_Data *ctxpopup_it) 929 Elm_Ctxpopup_Item_Data *ctxpopup_it)
diff --git a/src/lib/elementary/elm_ctxpopup_item.eo b/src/lib/elementary/elm_ctxpopup_item.eo
index 47dd0ff866..31c87ebff7 100644
--- a/src/lib/elementary/elm_ctxpopup_item.eo
+++ b/src/lib/elementary/elm_ctxpopup_item.eo
@@ -20,6 +20,7 @@ class Elm.Ctxpopup.Item(Elm.Widget.Item, Efl.Ui.Item)
20 Elm.Widget.Item.del_pre; 20 Elm.Widget.Item.del_pre;
21 Elm.Widget.Item.part_text { get; set; } 21 Elm.Widget.Item.part_text { get; set; }
22 Elm.Widget.Item.part_content { get; set; } 22 Elm.Widget.Item.part_content { get; set; }
23 Elm.Widget.Item.part_content_unset;
23 Elm.Widget.Item.focus { get; set; } 24 Elm.Widget.Item.focus { get; set; }
24 Efl.Ui.Item.selected { get; set; } 25 Efl.Ui.Item.selected { get; set; }
25 Efl.Ui.Item.prev { get; } 26 Efl.Ui.Item.prev { get; }