discomfitor pushed a commit to branch master.

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

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

    efl_ui_layout_object: Wrap calls to edje_object_part_object_get with
    
    Summary:
    freeze/thaw
    
    @ref T6884
    
    Depends on D6409
    
    Reviewers: zmike, ManMower
    
    Reviewed By: zmike
    
    Subscribers: cedric, #committers
    
    Tags: #efl
    
    Maniphest Tasks: T6884
    
    Differential Revision: https://phab.enlightenment.org/D6410
---
 src/lib/elementary/efl_ui_layout_object.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/efl_ui_layout_object.c 
b/src/lib/elementary/efl_ui_layout_object.c
index 1c16f29db4..8d512a0177 100644
--- a/src/lib/elementary/efl_ui_layout_object.c
+++ b/src/lib/elementary/efl_ui_layout_object.c
@@ -324,8 +324,12 @@ _parts_cursors_apply(Efl_Ui_Layout_Object_Data *sd)
 
    EINA_LIST_FOREACH(sd->parts_cursors, l, pc)
      {
-        Evas_Object *obj = (Evas_Object *)edje_object_part_object_get
-            (wd->resize_obj, pc->part);
+        Evas_Object *obj;
+
+        edje_object_freeze(wd->resize_obj);
+        obj = (Evas_Object *)edje_object_part_object_get
+          (wd->resize_obj, pc->part);
+        edje_object_thaw(wd->resize_obj);
 
         if (!obj)
           {
@@ -1745,8 +1749,11 @@ _efl_ui_layout_part_cursor_set(Efl_Ui_Layout_Object_Data 
*sd, const char *part_n
 
    if (!cursor) return _efl_ui_layout_part_cursor_unset(sd, part_name);
 
+   edje_object_freeze(wd->resize_obj);
    part_obj = (Evas_Object *)edje_object_part_object_get
        (wd->resize_obj, part_name);
+   edje_object_thaw(wd->resize_obj);
+
    if (!part_obj)
      {
         const char *group, *file;

-- 


Reply via email to