discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c8770a54df09caa3d2a4d9d5e96591a6ae804835

commit c8770a54df09caa3d2a4d9d5e96591a6ae804835
Author: Chris Michael <[email protected]>
Date:   Mon Jun 25 11:29:21 2018 -0400

    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
---
 src/lib/elementary/elm_panel.c | 8 +++++---
 1 file 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)
 static Evas_Object *
 _access_object_get(const Evas_Object *obj, const char *part)
 {
-   Evas_Object *po, *ao;
+   Evas_Object *po, *ao, *o;
    ELM_PANEL_DATA_GET(obj, sd);
 
-   po = (Evas_Object *)edje_object_part_object_get
-      (elm_layout_edje_get(sd->scr_ly), part);
+   o = elm_layout_edje_get(sd->scr_ly);
+   edje_object_freeze(o);
+   po = (Evas_Object *)edje_object_part_object_get(o, part);
+   edje_object_thaw(o);
    ao = evas_object_data_get(po, "_part_access_obj");
 
    return ao;

-- 


Reply via email to