discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5a54a3d357acc1b7c285cea29b67b4a4f6404469
commit 5a54a3d357acc1b7c285cea29b67b4a4f6404469 Author: Chris Michael <[email protected]> Date: Mon Jun 25 11:29:50 2018 -0400 efl_ui_calendar: Wrap calls to edje_object_part_object_get with Summary: freeze/thaw @ref T6884 Depends on D6411 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6884 Differential Revision: https://phab.enlightenment.org/D6412 --- src/lib/elementary/efl_ui_calendar.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/lib/elementary/efl_ui_calendar.c b/src/lib/elementary/efl_ui_calendar.c index 02bb5172b9..7278e63aff 100644 --- a/src/lib/elementary/efl_ui_calendar.c +++ b/src/lib/elementary/efl_ui_calendar.c @@ -261,7 +261,7 @@ _access_calendar_item_register(Evas_Object *obj) static void _access_calendar_spinner_register(Evas_Object *obj) { - Evas_Object *po; + Evas_Object *po, *o; Elm_Access_Info *ai; EFL_UI_CALENDAR_DATA_GET(obj, sd); @@ -285,8 +285,10 @@ _access_calendar_spinner_register(Evas_Object *obj) ai = _elm_access_info_get(sd->year_access); _elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("calendar year")); - po = (Evas_Object *)edje_object_part_object_get - (elm_layout_edje_get(obj), "month_text"); + o = elm_layout_edje_get(obj); + edje_object_freeze(o); + po = (Evas_Object *)edje_object_part_object_get(o, "month_text"); + edje_object_thaw(o); evas_object_pass_events_set(po, EINA_FALSE); } @@ -1282,13 +1284,15 @@ EOLIAN static void _efl_ui_calendar_item_day_number_set(Eo *obj, Efl_Ui_Calendar_Item_Data *pd, int i) { char pname[14]; - Evas_Object *po; + Evas_Object *po, *o; pd->v = i; snprintf(pname, sizeof(pname), "cit_%i.access", i); - po = (Evas_Object *)edje_object_part_object_get - (elm_layout_edje_get(efl_parent_get(obj)), pname); + o = elm_layout_edje_get(efl_parent_get(obj)); + edje_object_freeze(o); + po = (Evas_Object *)edje_object_part_object_get(o, pname); + edje_object_thaw(o); if (_elm_config->access_mode != ELM_ACCESS_MODE_ON) pd->part = po; --
