summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-04-25 19:53:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-04-26 14:09:36 +0900
commit62caefdf0e8d16130624a9c0ef371d813c375962 (patch)
treefbd665e631a14ed31b3e1e475639b8c3dd0a1d14
parentf7f1862489748d971a24b7fe1cc140536fa59817 (diff)
Elm.Layout: Implement content_remove
-rw-r--r--src/lib/elementary/elm_layout.c17
-rw-r--r--src/lib/elementary/elm_layout.eo1
2 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_layout.c b/src/lib/elementary/elm_layout.c
index 9678269926..a886bc7e0b 100644
--- a/src/lib/elementary/elm_layout.c
+++ b/src/lib/elementary/elm_layout.c
@@ -1121,6 +1121,23 @@ _elm_layout_efl_container_content_unset(Eo *obj, Elm_Layout_Smart_Data *sd, cons
1121 return NULL; 1121 return NULL;
1122} 1122}
1123 1123
1124EOLIAN static Eina_Bool
1125_elm_layout_efl_container_content_remove(Eo *obj, Elm_Layout_Smart_Data *sd EINA_UNUSED,
1126 Efl_Gfx_Base *content)
1127{
1128 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
1129
1130 if (!elm_widget_sub_object_del(obj, content))
1131 {
1132 ERR("could not remove sub object %p from %p", content, obj);
1133 return EINA_FALSE;
1134 }
1135 edje_object_part_unswallow(wd->resize_obj, content);
1136 _eo_unparent_helper(content, obj);
1137
1138 return content;
1139}
1140
1124/* legacy only - eo is iterator */ 1141/* legacy only - eo is iterator */
1125EAPI Eina_List * 1142EAPI Eina_List *
1126elm_layout_content_swallow_list_get(const Evas_Object *obj) 1143elm_layout_content_swallow_list_get(const Evas_Object *obj)
diff --git a/src/lib/elementary/elm_layout.eo b/src/lib/elementary/elm_layout.eo
index 4bc7a09c7a..6ec3f8aafd 100644
--- a/src/lib/elementary/elm_layout.eo
+++ b/src/lib/elementary/elm_layout.eo
@@ -494,6 +494,7 @@ class Elm.Layout (Elm.Widget, Efl.Container, Efl.File)
494 Efl.Container.content_unset; 494 Efl.Container.content_unset;
495 Efl.Container.content_part_name.get; 495 Efl.Container.content_part_name.get;
496 Efl.Container.content_count; 496 Efl.Container.content_count;
497 Efl.Container.content_remove;
497 Efl.Container.content_iterate; 498 Efl.Container.content_iterate;
498 } 499 }
499 events { 500 events {