summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-06-25 11:29:26 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 11:32:47 -0400
commit25aed20aed73a5f894ec76cb1c63edbfe8dbf230 (patch)
tree12ee0e8f9be74b5f65a6c6d5ef3112c1b97c9316
parentc8770a54df09caa3d2a4d9d5e96591a6ae804835 (diff)
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
-rw-r--r--src/lib/elementary/elm_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_access.c b/src/lib/elementary/elm_access.c
index 566cf492b8..11247e4050 100644
--- a/src/lib/elementary/elm_access.c
+++ b/src/lib/elementary/elm_access.c
@@ -1013,7 +1013,9 @@ _elm_access_edje_object_part_object_register(Evas_Object* obj,
1013{ 1013{
1014 Evas_Object *ao, *po; 1014 Evas_Object *ao, *po;
1015 1015
1016 edje_object_freeze((Evas_Object *)eobj);
1016 po = (Evas_Object *)edje_object_part_object_get(eobj, part); 1017 po = (Evas_Object *)edje_object_part_object_get(eobj, part);
1018 edje_object_thaw((Evas_Object *)eobj);
1017 if (!obj || !po) return NULL; 1019 if (!obj || !po) return NULL;
1018 1020
1019 /* check previous access object */ 1021 /* check previous access object */
@@ -1034,7 +1036,9 @@ _elm_access_edje_object_part_object_unregister(Evas_Object* obj EINA_UNUSED,
1034{ 1036{
1035 Evas_Object *po; 1037 Evas_Object *po;
1036 1038
1039 edje_object_freeze((Evas_Object *)eobj);
1037 po = (Evas_Object *)edje_object_part_object_get(eobj, part); 1040 po = (Evas_Object *)edje_object_part_object_get(eobj, part);
1041 edje_object_thaw((Evas_Object *)eobj);
1038 if (!po) return; 1042 if (!po) return;
1039 1043
1040 _access_object_unregister(po); 1044 _access_object_unregister(po);