e_comp_object: remove the visibility_effect 10/318410/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 16 Jan 2025 06:18:31 +0000 (15:18 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 16 Jan 2025 10:01:13 +0000 (19:01 +0900)
The visibility_effect is not used anymore and is deprecated.

Change-Id: I8e0828faa8bf8472486506c691cdcc336704106a

src/bin/compmgr/e_comp_object.c
src/bin/compmgr/e_comp_object_intern.h
src/bin/core/e_comp_cfdata.c
src/include/e_comp_cfdata.h

index 6b67737637adf848a19e0e84a56f817a6f564cd2..05158c111dd014341153b33bbfdde3f3dd57edba 100644 (file)
@@ -1026,40 +1026,6 @@ _e_comp_object_done_defer(void *data, Evas_Object *obj EINA_UNUSED, const char *
 static Eina_Bool
 _e_comp_object_effect_visibility_start(E_Comp_Object *cw, Eina_Bool state)
 {
-   E_Zone *zone;
-   int x, y;
-   int zw = 0, zh = 0;
-
-   if ((!cw->visibility_effect) || (!e_comp_object_effect_allowed_get(cw->smart_obj))) return EINA_TRUE;;
-   if (!cw->effect_running)
-     _e_comp_object_animating_begin(cw);
-   if (!e_comp_object_effect_stop(cw->smart_obj, _e_comp_object_done_defer))
-     return _e_comp_object_animating_end(cw);
-   if (!e_comp_object_effect_set(cw->smart_obj, cw->visibility_effect))
-     return _e_comp_object_animating_end(cw);
-
-   evas_pointer_canvas_xy_get(e_comp_evas_get(), &x, &y);
-   x -= cw->x;
-   y -= cw->y;
-   zone = e_comp_zone_find_by_ec(cw->ec);
-   if (zone)
-     zw = zone->w, zh = zone->h;
-   else
-     {
-        E_Zone *zone;
-
-        zone = e_comp_object_util_zone_get(cw->smart_obj);
-        if (!zone) zone = e_zone_current_get();
-        if (zone)
-          {
-             zw = zone->w;
-             zh = zone->h;
-          }
-     }
-   e_comp_object_effect_params_set(cw->smart_obj, 1, (int[]){cw->x, cw->y,
-      cw->w, cw->h, zw, zh, x, y}, 8);
-   e_comp_object_effect_params_set(cw->smart_obj, 0, (int[]){state}, 1);
-   e_comp_object_effect_start(cw->smart_obj, _e_comp_object_done_defer, cw);
    return EINA_TRUE;
 }
 /////////////////////////////////////////////
index 5f12edca43cb5973bab9728d177010a459673927..5d29f527314b466dc5265283ece0e0bb2de0db8f 100644 (file)
@@ -27,7 +27,6 @@ struct _E_Comp_Object
 
    Eina_Stringshare   *frame_theme;
    Eina_Stringshare   *frame_name;
-   Eina_Stringshare   *visibility_effect; //effect when toggling visibility
 
    E_Comp_Object_Content_Type content_type; // type of e.swallow.content
 
index c395ad290b2d3585a478a9dba847e8959defd506..95e890b4d02c12495ecf8c8ecb99f4313f4acc12 100644 (file)
@@ -21,7 +21,6 @@ e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd)
    E_CONFIG_VAL(D, T, modal, CHAR);
    E_CONFIG_VAL(D, T, focus, CHAR);
    E_CONFIG_VAL(D, T, no_shadow, CHAR);
-   E_CONFIG_VAL(D, T, visibility_effect, STR);
 
    *conf_edd = E_CONFIG_DD_NEW("Comp_Config", E_Comp_Config);
 #undef T
@@ -255,7 +254,6 @@ e_comp_cfdata_match_free(E_Comp_Match *m)
    eina_stringshare_del(m->name);
    eina_stringshare_del(m->clas);
    eina_stringshare_del(m->role);
-   eina_stringshare_del(m->visibility_effect);
    free(m);
 }
 
index 288b4d7bee59a77de05b6b74daa8099dc974c822..63b4714510a0e1bff5b7af63626ea66c6d078a68 100644 (file)
@@ -91,7 +91,7 @@ struct _E_Comp_Match
    const char *role; // glob - used for borders
 
    E_DEPRECATED const char *shadow_style; // shadow style to use
-   const char *visibility_effect; // effect to use when showing and hiding
+   E_DEPRECATED const char *visibility_effect; // effect to use when showing and hiding
 
    int         primary_type; // Ecore_X_Window_Type - used for borders, overrides, first one found - ECORE_X_WINDOW_TYPE_UNKNOWN if not to be used
    char        borderless; // used for borders, 0 == dont use, 1 == borderless, -1 == not borderless