Change-Id: I788070dffba48065c2ed213a62d40ad8ca3dcc5f
ani_h = ani->ani_h;
- e = (PUI_Event_Animation_Status *)calloc(1, sizeof(PUI_Event_Animation_Status));
-
- if (!e)
- {
- pui_err("Failed to allocate memory for PUI Event !\n");
- return;
- }
-
ani->status = status;
- e->ani_h = ani_h;
- e->win = ecore_wl2_window_id_get(ani_h->pui_handle->win);
- e->status = status;
switch (status)
{
if (ev_type > 0)
{
+ e = (PUI_Event_Animation_Status *)calloc(1, sizeof(PUI_Event_Animation_Status));
+
+ if (!e)
+ {
+ pui_err("Failed to allocate memory for PUI Event !\n");
+ return;
+ }
+
+ e->ani_h = ani_h;
+ e->win = ecore_wl2_window_id_get(ani_h->pui_handle->win);
+ e->status = status;
+
ecore_event_add(ev_type, e, NULL, ani_h);
}
}