forked from enlightenment/efl
Revert "efl_ui_widget: resolve warning about multiple defines"
This reverts commit 9012742f9a
.
I landed this too hastily.
This commit is contained in:
parent
9012742f9a
commit
8c39c0e251
|
@ -481,6 +481,11 @@ _logical_parent_eval(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd, Eina_Bool s
|
|||
if (efl_isa(pd->logical.parent, EFL_UI_WIDGET_CLASS))
|
||||
{
|
||||
ELM_WIDGET_DATA_GET(pd->logical.parent, logical_wd);
|
||||
if (!logical_wd)
|
||||
{
|
||||
ERR("Widget parent has the wrong type!");
|
||||
return NULL;
|
||||
}
|
||||
logical_wd->logical.child_count --;
|
||||
}
|
||||
old = pd->logical.parent;
|
||||
|
@ -492,6 +497,11 @@ _logical_parent_eval(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd, Eina_Bool s
|
|||
if (efl_isa(parent, EFL_UI_WIDGET_CLASS))
|
||||
{
|
||||
ELM_WIDGET_DATA_GET(parent, parent_wd);
|
||||
if (!parent_wd)
|
||||
{
|
||||
ERR("Widget parent has the wrong type!");
|
||||
return NULL;
|
||||
}
|
||||
parent_wd->logical.child_count ++;
|
||||
}
|
||||
pd->logical.parent = parent;
|
||||
|
|
Loading…
Reference in New Issue