atspi: use correct object for highlight_grabbing 75/158375/3 accepted/tizen/unified/20171108.063507 submit/tizen/20171107.093719
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 31 Oct 2017 10:54:04 +0000 (19:54 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 2 Nov 2017 05:25:48 +0000 (05:25 +0000)
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 0f776461554f0695f4cc51037a87c9b87ea2d4db..803e13caed823f331cf4d2022e3d852226698e80 100644 (file)
@@ -7170,7 +7170,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
@@ -7187,7 +7187,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;
 }