atspi : Change default label append of popup from show_finish_cb to on_show 94/156494/1
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Oct 2017 03:13:31 +0000 (12:13 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 18 Oct 2017 12:25:21 +0000 (21:25 +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: I1a626a6cf650a0fc05aed22c38fc192267aeb8ef

src/lib/elc_popup.c

index 4bbc3db..5223ca7 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);
 }