atspi : Change default label append of popup from show_finish_cb to on_show 40/155340/2
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Oct 2017 03:13:31 +0000 (12:13 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Oct 2017 03:16:58 +0000 (12:16 +0900)
   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: Ib2e41e223634a728f4953e60dec3967ff251bc7a

src/lib/elc_popup.c

index ce796f353909031d01c7019dc5dcf5c2447fae6e..2e7b6b9efb602687bf7e741ecfe1e10b8858605f 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;
@@ -190,6 +187,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);
 }