}
}
-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)
{
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,
}
}
- //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)
{