genlist/atspi : The addition name of the group item as per UX 0.3 55/72755/4
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 2 Jun 2016 09:57:20 +0000 (18:57 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 7 Jun 2016 02:38:44 +0000 (19:38 -0700)
   There is no tts about the name when the item of the genlist is the group item.
   So, the addition did ELM_GENLIST_ITEM_GROUP according to the UX guide.

Change-Id: I812075e4607f14a49779f4db4a86eafa592f248f

src/lib/elm_genlist.c

index f62d424..5612ba0 100644 (file)
@@ -8100,7 +8100,7 @@ _elm_genlist_item_elm_interface_atspi_accessible_name_get(Eo *eo_it,
                   eina_strbuf_append(buf, str_utf8);
                   free(str_utf8);
 
-                  if((genlist_item_type & ELM_GENLIST_ITEM_TREE) && texts_list_item_index == 0)
+                  if(((genlist_item_type & ELM_GENLIST_ITEM_GROUP) || (genlist_item_type & ELM_GENLIST_ITEM_TREE)) && texts_list_item_index == 0)
                     {
                       eina_strbuf_append(buf, ", ");
                       eina_strbuf_append(buf, E_("group index"));
@@ -8110,7 +8110,6 @@ _elm_genlist_item_elm_interface_atspi_accessible_name_get(Eo *eo_it,
              ++texts_list_item_index;
           }
      }
-
    ret = eina_strbuf_string_steal(buf);
    eina_strbuf_free(buf);
    return ret;