atspi: use correct object for highlight_grabbing 97/158597/1 accepted/tizen/4.0/unified/20171108.063649 submit/tizen_4.0/20171107.093340
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 31 Oct 2017 10:54:04 +0000 (19:54 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 2 Nov 2017 05:17:57 +0000 (14:17 +0900)
elm_object_accessibility_highlight_set is using VIEW object as a "target"
object for the ELM_WIDGET_ITEM_CLASS object. And the "target" object is used
for all highlight related lines in the elm_win including highlight_grabbing.

So when the elm_widget sets highlight_grabbing for the ELM_WIDGET_ITEM_CLASS
object, the VIEW object should be used.

Change-Id: I6bd1e40e69883e81f968ea82a6a48be9204206d2

src/lib/elm_widget.c

index 7cae360..46eed7c 100644 (file)
@@ -7161,7 +7161,7 @@ _elm_widget_item_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widge
    if (!sd) return EINA_FALSE;
    if (!sd->view) return EINA_FALSE;
    //TIZEN_ONLY(20171011) : atspi : During the highlight grab, out signal is not sent.
-   _elm_widget_accessibility_highlight_grabbing_set(obj, EINA_TRUE);
+   _elm_widget_accessibility_highlight_grabbing_set(sd->view, EINA_TRUE);
    //
 
    //TIZEN_ONLY(20170119): Show the object highlighted by highlight_grab when the object is completely out of the scroll
@@ -7178,7 +7178,7 @@ _elm_widget_item_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widge
    evas_object_smart_callback_call(sd->widget, SIG_WIDGET_ATSPI_HIGHLIGHTED, obj);
    //
    //TIZEN_ONLY(20171011) : atspi : During the highlight grab, out signal is not sent.
-   _elm_widget_accessibility_highlight_grabbing_set(obj, EINA_FALSE);
+   _elm_widget_accessibility_highlight_grabbing_set(sd->view, EINA_FALSE);
    //
    return EINA_TRUE;
 }