From 7abc96cfdfdfc09468f8d67c9005b1ad0d2e442c Mon Sep 17 00:00:00 2001 From: "jinbong.lee" Date: Mon, 9 Dec 2024 19:02:06 +0900 Subject: [PATCH] Apply capsulation of E_Comp Change-Id: I95b544116f1c9f6611f73c5366bd991264f9c837 Signed-off-by: jinbong.lee --- src/e_mod_effect.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/e_mod_effect.c b/src/e_mod_effect.c index 6313411..2f68af4 100644 --- a/src/e_mod_effect.c +++ b/src/e_mod_effect.c @@ -468,7 +468,7 @@ _eff_object_layer_up(E_Client *ec) if (!_eff->layers[map_ly].obj) { - _eff->layers[map_ly].obj = evas_object_rectangle_add(e_comp->evas); + _eff->layers[map_ly].obj = evas_object_rectangle_add(e_comp_evas_get()); evas_object_layer_set(_eff->layers[map_ly].obj, ec_layer + 1); evas_object_name_set(_eff->layers[map_ly].obj, "layer_obj(effect)"); } @@ -531,7 +531,7 @@ _eff_stack_update(void) _eff->stack.old = eina_list_free(_eff->stack.old); _eff->stack.old = eina_list_clone(_eff->stack.cur); - for (o = evas_object_top_get(e_comp->evas); o; o = evas_object_below_get(o)) + for (o = evas_object_top_get(e_comp_evas_get()); o; o = evas_object_below_get(o)) { ec = evas_object_data_get(o, "E_Client"); if (!ec) continue; @@ -1545,7 +1545,7 @@ e_mod_effect_init(void) E_Effect_Client *efc; EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp, EINA_FALSE); - EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp->evas, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp_evas_get(), EINA_FALSE); eff = E_NEW(E_Effect, 1); EINA_SAFETY_ON_NULL_RETURN_VAL(eff, EINA_FALSE); @@ -1566,7 +1566,7 @@ e_mod_effect_init(void) eff->clients = eina_hash_pointer_new(_eff_cb_client_data_free); EINA_SAFETY_ON_NULL_GOTO(eff->clients, err); - EINA_LIST_FOREACH(e_comp->clients, l, ec) + EINA_LIST_FOREACH(e_comp_ec_list_get(), l, ec) { if (e_client_ignored_get(ec)) continue; -- 2.34.1