elm_genlist: add updating content logic when language is changed. 11/167711/3
authorSangHyeon Lee <sh10233.lee@samsung.com>
Fri, 19 Jan 2018 08:34:21 +0000 (17:34 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 24 Jan 2018 09:56:51 +0000 (09:56 +0000)
when language is changed, genlist content's text is not translated.
So I added elm_genlist_item_fields_update with
ELM_GENLIST_ITEM_FIELD_CONTENT.

@tizen_fix

Change-Id: Ie68de2a242e7b02eb4a877b19804846df9b345da
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/lib/elementary_tizen/elm_genlist.c

index 6d40b4e..72526f9 100644 (file)
@@ -4644,7 +4644,8 @@ _elm_genlist_efl_ui_widget_translate(Eo *obj, Elm_Genlist_Data *sd)
                {
                   elm_genlist_item_fields_update(EO_OBJ(it),
                                                  NULL,
-                                                 ELM_GENLIST_ITEM_FIELD_TEXT);
+                                                 ELM_GENLIST_ITEM_FIELD_TEXT |
+                                                 ELM_GENLIST_ITEM_FIELD_CONTENT);
                }
              else GL_IT(it)->calc_done = EINA_FALSE;
           }