forked from enlightenment/efl
elm/hovers: don't trigger more errors when setting null hover parent
Summary: null is not a valid subobject, do not attempt to add it @fix Depends on D8963 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: devilhorns, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8964
This commit is contained in:
parent
6f1d16330a
commit
9f4adbfda8
|
@ -759,7 +759,8 @@ elm_hover_parent_set(Evas_Object *obj,
|
||||||
{
|
{
|
||||||
ELM_HOVER_CHECK(obj);
|
ELM_HOVER_CHECK(obj);
|
||||||
ELM_HOVER_DATA_GET(obj, sd);
|
ELM_HOVER_DATA_GET(obj, sd);
|
||||||
efl_ui_widget_sub_object_add(parent, obj);
|
if (parent)
|
||||||
|
efl_ui_widget_sub_object_add(parent, obj);
|
||||||
_parent_setup(obj, sd, parent);
|
_parent_setup(obj, sd, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -537,7 +537,8 @@ elm_notify_parent_set(Evas_Object *obj,
|
||||||
{
|
{
|
||||||
ELM_NOTIFY_CHECK(obj);
|
ELM_NOTIFY_CHECK(obj);
|
||||||
ELM_NOTIFY_DATA_GET(obj, sd);
|
ELM_NOTIFY_DATA_GET(obj, sd);
|
||||||
efl_ui_widget_sub_object_add(parent, obj);
|
if (parent)
|
||||||
|
efl_ui_widget_sub_object_add(parent, obj);
|
||||||
_parent_setup(obj, sd, parent);
|
_parent_setup(obj, sd, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue