forked from enlightenment/efl
elm_access: Wrap calls to edje_object_part_object_get with freeze/thaw
Summary: @ref T6884 Depends on D6407 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6884 Differential Revision: https://phab.enlightenment.org/D6408
This commit is contained in:
parent
c8770a54df
commit
25aed20aed
|
@ -1013,7 +1013,9 @@ _elm_access_edje_object_part_object_register(Evas_Object* obj,
|
|||
{
|
||||
Evas_Object *ao, *po;
|
||||
|
||||
edje_object_freeze((Evas_Object *)eobj);
|
||||
po = (Evas_Object *)edje_object_part_object_get(eobj, part);
|
||||
edje_object_thaw((Evas_Object *)eobj);
|
||||
if (!obj || !po) return NULL;
|
||||
|
||||
/* check previous access object */
|
||||
|
@ -1034,7 +1036,9 @@ _elm_access_edje_object_part_object_unregister(Evas_Object* obj EINA_UNUSED,
|
|||
{
|
||||
Evas_Object *po;
|
||||
|
||||
edje_object_freeze((Evas_Object *)eobj);
|
||||
po = (Evas_Object *)edje_object_part_object_get(eobj, part);
|
||||
edje_object_thaw((Evas_Object *)eobj);
|
||||
if (!po) return;
|
||||
|
||||
_access_object_unregister(po);
|
||||
|
|
Loading…
Reference in New Issue