[ATSPI] enhance expose highlight information on atspi 78/113378/2
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 7 Feb 2017 08:38:06 +0000 (17:38 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 20 Feb 2017 02:07:50 +0000 (18:07 -0800)
   Do not set VISIBLE state when the item is disabled.
   So check the item's view object is visible.

Change-Id: I6a6f0829fcbb4761b1f024ae034260d6ae1bdee8

src/lib/elm_widget.c

index 4cee3910d86997a403795bd38ed5fe5592693f75..95bf2d6633d4c9911abe7929f1e5dd41ca923a77 100644 (file)
@@ -5075,11 +5075,15 @@ _elm_widget_item_elm_interface_atspi_accessible_state_set_get(Eo *eo_item,
      {
         STATE_TYPE_SET(states, ELM_ATSPI_STATE_ENABLED);
         STATE_TYPE_SET(states, ELM_ATSPI_STATE_SENSITIVE);
-        STATE_TYPE_SET(states, ELM_ATSPI_STATE_VISIBLE);
      }
    if (_elm_widget_item_onscreen_is(eo_item))
      STATE_TYPE_SET(states, ELM_ATSPI_STATE_SHOWING);
 
+   //TIZEN_ONLY(20170207) : [ATSPI] enhance expose highlight information on atspi
+   if (evas_object_visible_get(item->view))
+     STATE_TYPE_SET(states, ELM_ATSPI_STATE_VISIBLE);
+   //
+
    //TIZEN_ONLY(20170717) : expose highlight information on atspi
    if (_elm_widget_item_highlightable(eo_item) && _accessible_object_on_scroll_is(item->view))
      STATE_TYPE_SET(states, ELM_ATSPI_STATE_HIGHLIGHTABLE);