elm: [index]Do not give highlightable state if index style is pagecontrol
authorPrasoon Singh <prasoon.16@samsung.com>
Mon, 4 Dec 2017 13:58:46 +0000 (19:28 +0530)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 11:33:39 +0000 (20:33 +0900)
@tizen_fix

orignal patch: dd227fe25f621eb5d1fd61419e2b56601586f65b

Change-Id: Id60ea21cf38a725bd7dd0bc34f5260bf15a28280

src/lib/elementary/elm_index.c
src/lib/elementary/elm_index_item.eo

index e2acc58..c13e494 100644 (file)
@@ -1795,6 +1795,21 @@ _elm_index_efl_access_state_set_get(Eo *obj, Elm_Index_Data *sd)
 }
 //
 
+//TIZEN_ONLY(20161021) :atspi:Do not give highlightable state if index style is pagecontrol
+EOLIAN static Efl_Access_State_Set
+_elm_index_item_efl_access_state_set_get(Eo *eo_it, Elm_Index_Item_Data *sd)
+{
+   Efl_Access_State_Set ret;
+   const char *style = elm_widget_style_get(WIDGET(sd));
+
+   ret = efl_access_state_set_get(efl_super(eo_it, ELM_INDEX_ITEM_CLASS));
+   if (style && !strcmp(style, "pagecontrol"))
+     STATE_TYPE_UNSET(ret, EFL_ACCESS_STATE_HIGHLIGHTABLE);
+
+   return ret;
+}
+//
+
 /* Internal EO APIs and hidden overrides */
 
 #define ELM_INDEX_EXTRA_OPS \
index b1c3d8b..19a66d7 100644 (file)
@@ -46,5 +46,8 @@ class Elm.Index.Item(Elm.Widget.Item, Efl.Access.Widget.Action)
         Elm.Widget.Item.access_register;
         Efl.Access.name { get; }
         Efl.Access.Widget.Action.elm_actions { get; }
+        //TIZEN_ONLY(20161021) : atspi:Do not give highlightable state if index style is pagecontrol
+        Efl.Access.state_set { get; }
+        //
    }
 }