[Genlist] Group index with subtext. Appends to the name of group index item "group... submit/tizen/20160415.050125
authorKamil Lipiszko <k.lipiszko@samsung.com>
Mon, 14 Sep 2015 10:46:02 +0000 (12:46 +0200)
committerPrasoon Singh <prasoon.16@samsung.com>
Fri, 15 Apr 2016 04:59:32 +0000 (10:29 +0530)
[UIFWAC-13]

Signed-off-by: Kamil Lipiszko <k.lipiszko@samsung.com>
Conflicts:
po/en_US.po

Change-Id: I2934eadf2f5f4fe2bb7b9f6b2e6cf567a93dec4e

src/lib/elm_genlist.c

index 2fd82a8fd6ab9bdffa3d4339380549273eb2a475..fad75b53dd0fe5dfcb9c62274e3b429099aab804 100644 (file)
@@ -8024,6 +8024,7 @@ _elm_genlist_item_elm_interface_atspi_accessible_name_get(Eo *eo_it EINA_UNUSED,
 {
    char *ret;
    Eina_Strbuf *buf;
+   Elm_Genlist_Item_Type genlist_item_type = elm_genlist_item_type_get(eo_it);
 
    buf = eina_strbuf_new();
 
@@ -8034,6 +8035,7 @@ _elm_genlist_item_elm_interface_atspi_accessible_name_get(Eo *eo_it EINA_UNUSED,
 
         texts =
            elm_widget_stringlist_get(edje_object_data_get(VIEW(it), "texts"));
+        int texts_list_item_index = 0;
 
         EINA_LIST_FREE(texts, key)
           {
@@ -8048,7 +8050,15 @@ _elm_genlist_item_elm_interface_atspi_accessible_name_get(Eo *eo_it EINA_UNUSED,
                   if (eina_strbuf_length_get(buf) > 0) eina_strbuf_append(buf, ", ");
                   eina_strbuf_append(buf, str_utf8);
                   free(str_utf8);
+
+                  if((genlist_item_type & ELM_GENLIST_ITEM_TREE) && texts_list_item_index == 0)
+                    {
+                      eina_strbuf_append(buf, ", ");
+                      eina_strbuf_append(buf, E_("group index"));
+                    }
                }
+
+             ++texts_list_item_index;
           }
      }