efl_ui_layout_object: Fix not to use background/shadow part interface in legacy

Summary:
"background" and "shadow" part interface was designed to be used in efl
ui interface only.
Therefore, "background" and "shadow" part interface is not used in
legacy.

Test Plan:
Calls elm_object_part_content_set(layout, "background", content); for
legacy layout.

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6595
This commit is contained in:
Jaehyun Cho 2018-07-18 12:10:17 +09:00 committed by Hermet Park
parent df13fb4a70
commit 2916cfd86b
1 changed files with 18 additions and 15 deletions

View File

@ -2250,6 +2250,8 @@ _efl_ui_layout_object_efl_part_part_get(const Eo *obj, Efl_Ui_Layout_Object_Data
// Check part type without using edje_object_part_object_get(), as this // Check part type without using edje_object_part_object_get(), as this
// can cause recalc, which has side effects... and could be slow. // can cause recalc, which has side effects... and could be slow.
if (!elm_widget_is_legacy(obj))
{
if (eina_streq(part, "background")) if (eina_streq(part, "background"))
{ {
if (efl_layout_group_part_exist_get(wd->resize_obj, "efl.background")) if (efl_layout_group_part_exist_get(wd->resize_obj, "efl.background"))
@ -2271,6 +2273,7 @@ _efl_ui_layout_object_efl_part_part_get(const Eo *obj, Efl_Ui_Layout_Object_Data
} }
else if (eina_streq(part, "shadow")) else if (eina_streq(part, "shadow"))
return efl_part_get(efl_super(obj, MY_CLASS), part); return efl_part_get(efl_super(obj, MY_CLASS), part);
}
if (!efl_layout_group_part_exist_get(wd->resize_obj, part)) if (!efl_layout_group_part_exist_get(wd->resize_obj, part))
{ {