Revert "atspi: Improves how to find the can_highlight of the widget." 73/153773/1
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 29 Sep 2017 11:43:01 +0000 (20:43 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 29 Sep 2017 11:43:43 +0000 (20:43 +0900)
This reverts commit a527c41d22ac4144a9834385441b9657831b8dd3.

Change-Id: Ic6f95f41a74f3fe07ebb3e210317a2e8f1cf75fe

src/lib/elm_widget.c

index cee6b63fa83d6779dc710cdff7253f7643688826..c815a01b513679343b3233689c55132020efc62f 100644 (file)
@@ -5066,8 +5066,8 @@ _elm_widget_item_highlightable(Elm_Object_Item *item)
    eo_do(item, parent = elm_interface_atspi_accessible_parent_get());
    while (parent && !eo_isa(parent, ELM_ATSPI_APP_OBJECT_CLASS))
      {
-        Elm_Widget_Smart_Data *parent_wd = eo_data_scope_get(parent, ELM_WIDGET_ITEM_CLASS);
-        if (!parent_wd->can_highlight) return EINA_FALSE;
+        eo_do(parent, can_highlight = elm_interface_atspi_accessible_can_highlight_get());
+        if (!can_highlight) return EINA_FALSE;
         eo_do(parent, parent = elm_interface_atspi_accessible_parent_get());
      }
    return EINA_TRUE;
@@ -6957,8 +6957,8 @@ _elm_widget_highlightable(Evas_Object *obj)
    eo_do(obj, parent = elm_interface_atspi_accessible_parent_get());
    while (parent && !eo_isa(parent, ELM_ATSPI_APP_OBJECT_CLASS))
      {
-        Elm_Widget_Smart_Data *parent_wd = eo_data_scope_get(parent, ELM_WIDGET_CLASS);
-        if (!parent_wd->can_highlight) return EINA_FALSE;
+        eo_do(parent, can_highlight = elm_interface_atspi_accessible_can_highlight_get());
+        if (!can_highlight) return EINA_FALSE;
         eo_do(parent, parent = elm_interface_atspi_accessible_parent_get());
      }
    return EINA_TRUE;