[OneUI1.5] elm_genlist: Add read_only state for title item
authorPrasoon Singh <prasoon.16@samsung.com>
Mon, 9 Dec 2019 13:16:12 +0000 (18:46 +0530)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 16 Dec 2019 03:33:07 +0000 (12:33 +0900)
Change-Id: I168825b34c6ab9d35ff9916a94f7e9756c1ce5aa
Signed-off-by: Prasoon Singh <prasoon.16@samsung.com>
src/lib/elementary_tizen/elm_genlist.c

index 33e181d..b0bb287 100644 (file)
@@ -9344,7 +9344,7 @@ _elm_genlist_item_select_mode_get(const Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
 }
 
 EOLIAN Efl_Access_State_Set
-_elm_genlist_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_Gen_Item *it EINA_UNUSED)
+_elm_genlist_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_Gen_Item *it)
 {
    Elm_Atspi_State_Set ret;
    Eina_Bool sel;
@@ -9377,7 +9377,10 @@ _elm_genlist_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_Gen_Item
             STATE_TYPE_SET(ret, ELM_ATSPI_STATE_COLLAPSED);
      }
    //
-
+   //TIZEN_ONLY(20191209): Add read only state for title class
+   if (it && it->itc && it->itc->item_style && strstr(it->itc->item_style, "title"))
+     STATE_TYPE_SET(ret, ELM_ATSPI_STATE_READ_ONLY);
+   //
    return ret;
 }