[atspi][elm_index] Do not give highlightable state if index style is pagecontrol 22/93322/2
authorPrasoon Singh <prasoon.16@samsung.com>
Fri, 21 Oct 2016 14:21:55 +0000 (19:51 +0530)
committerPrasoon Singh <prasoon.16@samsung.com>
Mon, 24 Oct 2016 06:31:48 +0000 (23:31 -0700)
Change-Id: I143bba3b225615930379c4d03a4a488a1ddd6f38

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

index 4cb88fe..2bd368c 100644 (file)
@@ -1847,5 +1847,20 @@ _elm_index_elm_interface_atspi_accessible_state_set_get(Eo *obj, Elm_Index_Data
 }
 //
 
+//TIZEN_ONLY(20161021) :atspi:Do not give highlightable state if index style is pagecontrol
+EOLIAN static Elm_Atspi_State_Set
+_elm_index_item_elm_interface_atspi_accessible_state_set_get(Eo *eo_it, Elm_Index_Item_Data *sd)
+{
+   Elm_Atspi_State_Set ret;
+   const char *style = elm_widget_style_get(WIDGET(sd));
+
+   eo_do_super(eo_it, ELM_INDEX_ITEM_CLASS, ret = elm_interface_atspi_accessible_state_set_get());
+   if (style && !strcmp(style, "pagecontrol"))
+     STATE_TYPE_UNSET(ret, ELM_ATSPI_STATE_HIGHLIGHTABLE);
+
+   return ret;
+}
+//
+
 #include "elm_index_item.eo.c"
 #include "elm_index.eo.c"
index 4b4cd59..f0f88cb 100644 (file)
@@ -65,5 +65,8 @@ class Elm.Index_Item(Elm.Widget_Item, Elm_Interface_Atspi_Widget_Action)
         Elm.Widget_Item.style.get;
         Elm.Widget_Item.style.set;
         /* END */
+        //TIZEN_ONLY(20161021) : atspi:Do not give highlightable state if index style is pagecontrol
+        Elm_Interface_Atspi_Accessible.state_set.get;
+        //
    }
 }