atspi : Change default label append of popup from show_finish_cb to on_show 83/156483/2
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Oct 2017 03:13:31 +0000 (12:13 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 18 Oct 2017 12:29:14 +0000 (12:29 +0000)
   show_finish_cb is called after animation of popup has finished.
   default label time limit for screen-readers is 0.3 seconds.
   Default label does not work if animation does not finish in 0.3 seconds
   So change it so that it can be processed by smart show.

Change-Id: I8df4833662d7252ded0ab2912e337d59d2f45ad3

src/lib/elc_popup.c

index 4bbc3db6df31e24789f6001cf6b0feb248528b75..5223ca7894e2f91a176f0187c47fc1400b6e0612 100644 (file)
@@ -152,9 +152,6 @@ static Eina_Bool
 _show_finished_cb(void *data,
       Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
 {
-   //TIZEN_ONLY(20170919): Handle default label object
-   _elm_win_default_label_obj_append(data);
-   //
    eo_do(data, eo_event_callback_call(ELM_POPUP_EVENT_SHOW_FINISHED, NULL));
 
    return EINA_TRUE;
@@ -191,6 +188,9 @@ _on_show(void *data EINA_UNUSED,
          Evas_Object *obj,
          void *event_info EINA_UNUSED)
 {
+   //TIZEN_ONLY(20170919): Handle default label object
+   _elm_win_default_label_obj_append(obj);
+   //
    elm_object_focus_set(obj, EINA_TRUE);
 }