[atspi] Use atspi status as smart callback event info 31/129331/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 10 May 2017 02:43:04 +0000 (11:43 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 16 May 2017 06:12:56 +0000 (15:12 +0900)
The elm_win did not use atspi status for SIG_ATSPI_SCREEN_READER_CHANGED smart
signal.

Change-Id: I6f1987222e6036fb24af6aea31a52cbb893603e2

src/lib/elm_atspi_bridge.c
src/lib/elm_win.c

index 4d1bf0c1642a941ed8631a1f8ee9e1b0a951107f..40c4959832c216c6a725bc5ffa0f93aa38c78180 100644 (file)
@@ -4827,13 +4827,14 @@ _screen_reader_enabled_get(void *data, const Eldbus_Message *msg, Eldbus_Pending
      _a11y_connection_init(data);
    else
      DBG("AT-SPI2 stack not enabled.");
+
+   //TIZEN_ONLY(20161027) - Export elm_atspi_bridge_utils_is_screen_reader_enabled
+   pd->screen_reader_enabled = !!is_enabled;
+   //
    //TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
    //register/unregister access objects accordingly.
    _elm_win_atspi(is_enabled);
    //
-   //TIZEN_ONLY(20161027) - Export elm_atspi_bridge_utils_is_screen_reader_enabled
-   pd->screen_reader_enabled = !!is_enabled;
-   //
 }
 
 static void _bridge_object_register(Eo *bridge, Eo *obj)
index 9305cf715499a55fbd634dce355dc0ebae93ace7..d75d08c937c16735544e10d989e1123b3905a3a1 100644 (file)
@@ -2989,7 +2989,7 @@ _elm_win_atspi(Eina_Bool is_atspi)
    EINA_LIST_FOREACH(_elm_win_list, l, obj)
      {
         elm_widget_atspi(obj, is_atspi);
-        evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, NULL);
+        evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
 
          /* floating orphan object. if there are A, B, C objects and user does
             as below, then there would be floating orphan objects.