atspi: use correct object for highlight_grabbing 98/158598/1
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:18:50 +0000 (14:18 +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 56c364c7785f2420381ae2acc844a2ea3adc08d9..2850f5bb52852d5abe7110a9b4b2f214ecb78343 100644 (file)
@@ -7169,7 +7169,7 @@ _elm_widget_item_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widge
    //
 
    //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
@@ -7186,7 +7186,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;
 }