[ATSPI] Add to find genlist item using proxy image 73/147473/2
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:57:57 +0000 (20:57 +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: I8fde784c71a7ec72add3996db006ba8ff059db66

src/lib/elm_widget.c

index b0d81d2e0414f13f883b3c8002db5b78c826eab3..e034c4c3c58241689f5424dd4767bb12db1d0749 100644 (file)
@@ -7262,6 +7262,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))