summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-06-25 11:29:21 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 11:32:47 -0400
commitc8770a54df09caa3d2a4d9d5e96591a6ae804835 (patch)
treeb38e00f21e1460d4e40e93e8ac5c48e3c3bb43a1
parent8ade8932ba5ad9ace091b1a9908c4a696de189be (diff)
elm_panel: Wrap calls to edje_object_part_object_get with freeze/thaw
Summary: @ref T6884 Depends on D6406 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6884 Differential Revision: https://phab.enlightenment.org/D6407
-rw-r--r--src/lib/elementary/elm_panel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_panel.c b/src/lib/elementary/elm_panel.c
index d219a89540..60a5a144cf 100644
--- a/src/lib/elementary/elm_panel.c
+++ b/src/lib/elementary/elm_panel.c
@@ -90,11 +90,13 @@ _access_state_cb(void *data, Evas_Object *obj EINA_UNUSED)
90static Evas_Object * 90static Evas_Object *
91_access_object_get(const Evas_Object *obj, const char *part) 91_access_object_get(const Evas_Object *obj, const char *part)
92{ 92{
93 Evas_Object *po, *ao; 93 Evas_Object *po, *ao, *o;
94 ELM_PANEL_DATA_GET(obj, sd); 94 ELM_PANEL_DATA_GET(obj, sd);
95 95
96 po = (Evas_Object *)edje_object_part_object_get 96 o = elm_layout_edje_get(sd->scr_ly);
97 (elm_layout_edje_get(sd->scr_ly), part); 97 edje_object_freeze(o);
98 po = (Evas_Object *)edje_object_part_object_get(o, part);
99 edje_object_thaw(o);
98 ao = evas_object_data_get(po, "_part_access_obj"); 100 ao = evas_object_data_get(po, "_part_access_obj");
99 101
100 return ao; 102 return ao;