atspi : Change default label append of popup from show_finish_cb to on_show.
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 12 Dec 2017 07:55:34 +0000 (13:25 +0530)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 13:06:33 +0000 (22:06 +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.

orig: 0f834dc1b813fac712082b21d91eb15b555aa592

Change-Id: I44a0257217307fb47eefc31e6d04213700bf1b67
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
src/lib/elementary/elc_popup.c

index 7327c15..c418470 100644 (file)
@@ -147,9 +147,6 @@ _timeout_cb(void *data, const Efl_Event *event EINA_UNUSED)
 static void
 _show_finished_cb(void *data, const Efl_Event *event EINA_UNUSED)
 {
-   //TIZEN_ONLY(20170919): Handle default label object
-   _elm_win_default_label_obj_append(data);
-   //
    efl_event_callback_legacy_call(data, ELM_POPUP_EVENT_SHOW_FINISHED, NULL);
 }
 /* END */
@@ -181,6 +178,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(data);
+   //
    elm_object_focus_set(obj, EINA_TRUE);
 }