[ATSPI] Add to find genlist item using proxy image 05/146905/6
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 31 Aug 2017 05:56:37 +0000 (14:56 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 4 Sep 2017 11:58:38 +0000 (20:58 +0900)
   In a wearable profile, genlist displays the item using a proxy image.
   When a screen-reader finds an object in the top_down, it can not find the item.
   because, found item is proxy image.
   So, using evas_object_image_source_get and gets item view object from proxy image.

Change-Id: Ifbd278c30380d72c08ff5b86c9f12680bb0b7974

src/lib/elm_widget.c

index 01f43117019883675acc7b4238e872c3a4e59f6a..023207e2d14b01cfb2142b20d3d2126745888ab7 100644 (file)
@@ -7263,6 +7263,16 @@ _accessible_at_point_top_down_get(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSE
                {
                   Elm_Widget_Item_Data *id = eo_data_scope_get(child, ELM_WIDGET_ITEM_CLASS);
                   compare_obj = id->view;
+                  if (TIZEN_PROFILE_WEARABLE)
+                    {
+                       Eo* it_view = evas_object_image_source_get(stack_item);
+                       if (it_view && it_view == compare_obj)
+                         {
+                            eina_list_free(children);
+                            eina_list_free(stack);
+                            return child;
+                         }
+                    }
                }
              /* In case of access object compare should be 'wrapped' evas_object */
              if (eo_isa(child, ELM_ACCESS_CLASS))