e_policy_wl: deprecate indicator object of splash launch 99/310499/1
authorJunseok Kim <juns.kim@samsung.com>
Fri, 26 Apr 2024 05:13:33 +0000 (14:13 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 30 Apr 2024 04:17:22 +0000 (13:17 +0900)
Change-Id: I8c45f16266da0ce1fdc2b1523121219f1509900b

src/bin/e_policy_wl.c

index dce3a214b93a3c3c144fbd91e6cb3a18d9a6c5e7..11289abebda28eb6a1739ea354c47049e260e412 100644 (file)
@@ -6665,27 +6665,6 @@ _launch_effect_client_del(E_Client *ec)
      }
 }
 
-static void
-_launchscreen_splash_cb_indicator_resized(Ecore_Evas *ee)
-{
-   Evas_Coord_Size size = {0, 0};
-   Evas_Object *indicator_obj;
-   E_Policy_Wl_Tzlaunch_Splash *tzlaunch_splash;
-
-   tzlaunch_splash = ecore_evas_data_get(ee, "tzlaunch_splash");
-   if (!tzlaunch_splash) return;
-
-   indicator_obj = tzlaunch_splash->indicator_obj;
-
-   ecore_evas_geometry_get(ee, NULL, NULL, &(size.w), &(size.h));
-   ELOGF("TZPOL", "Launchscreen indicator_obj resized(%d x %d)",
-         NULL,
-         size.w, size.h);
-   evas_object_size_hint_min_set(indicator_obj, size.w, size.h);
-   evas_object_size_hint_max_set(indicator_obj, size.w, size.h);
-   e_comp_object_indicator_size_set(tzlaunch_splash->ec->frame, size.w, size.h);
-}
-
 static void
 _launchscreen_splash_cb_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
 {
@@ -6838,15 +6817,11 @@ _launchscreen_splash_setup(E_Policy_Wl_Tzlaunch_Splash *splash,
    splash->path = eina_stringshare_add(pfname);
    splash->type = ftype;
    splash->indicator = indicator;
+   splash->indicator_obj = NULL;
    splash->angle = angle;
 
    if (indicator)
-     {
-        /* To configure indicator options */
-        ec->indicator.state = TIZEN_INDICATOR_STATE_ON;
-        ec->indicator.visible_type = TIZEN_INDICATOR_VISIBLE_TYPE_SHOWN;
-        ec->indicator.opacity_mode = TIZEN_INDICATOR_OPACITY_MODE_BG_TRANSPARENT;
-     }
+     ELOGF("TZPOL", "Launchscreen setup | INDICATOR of the splash screen has benn deprecated. please check!", NULL);
 
    intercepted = e_policy_interceptor_call(E_POLICY_INTERCEPT_LAUNCHSCREEN_OBJECT_SETUP,
                                            ec,
@@ -6960,59 +6935,6 @@ _launchscreen_splash_setup(E_Policy_Wl_Tzlaunch_Splash *splash,
           }
      }
 
-   //Setup indicator
-   if (indicator)
-     {
-        Evas_Object *indicator_obj = NULL;
-        Eina_Bool ret = EINA_FALSE;
-
-        e_mod_indicator_owner_set(ec);
-        e_tzsh_indicator_srv_property_update(ec);
-
-        indicator_obj = ecore_evas_extn_plug_new(e_comp->ee);
-        if (!indicator_obj)
-          {
-             ELOGF("TZPOL",
-                   "Launchscreen setup | Failed to create ecore_evas_plug for indicator",
-                   ec);
-          }
-        else
-          {
-             if (e_config->indicator_plug_name)
-               {
-                  ret = ecore_evas_extn_plug_connect(indicator_obj, e_config->indicator_plug_name, 0, EINA_FALSE);
-                  if (ret)
-                    {
-                       Ecore_Evas *ee;
-
-                       ee = ecore_evas_object_ecore_evas_get(indicator_obj);
-                       ecore_evas_data_set(ee, "tzlaunch_splash", splash);
-                       ecore_evas_callback_resize_set(ee,
-                                                      _launchscreen_splash_cb_indicator_resized);
-                       e_comp_object_indicator_swallow(ec->frame, indicator_obj);
-                       evas_object_ref(indicator_obj);
-                       ELOGF("TZPOL",
-                             "Launchscreen launch | Succeeded to add indicator object plug_name(%s) indicator_obj(%p)",
-                             ec, e_config->indicator_plug_name, indicator_obj);
-                    }
-                  else
-                    {
-                       evas_object_del(indicator_obj);
-                       indicator_obj = NULL;
-                    }
-               }
-
-             if (!indicator_obj)
-               {
-                  ELOGF("TZPOL",
-                        "Launchscreen launch | Failed to add indicator object plug_name(%s)",
-                        ec, e_config->indicator_plug_name?:"NO PLUG NAME");
-               }
-          }
-
-        splash->indicator_obj = indicator_obj;
-     }
-
    //ref splash object
    if (splash->obj)
      {