efl_ui_pager: mark box internal
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Fri, 26 Apr 2019 12:23:58 +0000 (14:23 +0200)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:25:02 +0000 (13:25 +0900)
otherwise they will adjust the parent property, and we do not want to
have that.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8737

src/lib/elementary/efl_ui_pager.c

index efa77f8..1566da5 100644 (file)
@@ -360,6 +360,7 @@ _efl_ui_pager_efl_object_constructor(Eo *obj,
    efl_event_callback_add(pd->page_root, EFL_GFX_ENTITY_EVENT_POSITION_CHANGED, _move_cb, pd);
 
    pd->page_box = efl_add(EFL_UI_BOX_CLASS, obj);
+   efl_ui_widget_internal_set(pd->page_box, EINA_TRUE);
    efl_canvas_group_member_add(pd->page_root, pd->page_box);
 
    pd->foreclip = efl_add(EFL_CANVAS_RECTANGLE_CLASS,
@@ -681,6 +682,7 @@ _efl_ui_pager_indicator_set(Eo *obj EINA_UNUSED,
    if (!pd->idbox)
      {
         pd->idbox = efl_add(EFL_UI_BOX_CLASS, obj);
+        efl_ui_widget_internal_set(pd->idbox, EINA_TRUE);
         efl_content_set(efl_part(obj, "efl.indicator"), pd->idbox);
      }