//
#define EFL_ACCESS_WIDGET_ACTION_PROTECTED
#define ELM_WIDGET_ITEM_PROTECTED
+#define EFL_UI_L10N_PROTECTED
#define EFL_UI_FOCUS_COMPOSITION_PROTECTED
#include <Elementary.h>
return EINA_TRUE;
}
+EOLIAN static void
+_elm_genlist_efl_ui_l10n_translation_update(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
+{
+ Item_Block *itb;
+ Eina_List *l;
+ Elm_Gen_Item *it;
+
+ // FIXME: We should change item's height if lang is changed??
+ EINA_INLIST_FOREACH(sd->blocks, itb)
+ {
+ EINA_LIST_FOREACH(itb->items, l, it)
+ {
+ if (it->realized)
+ {
+ elm_genlist_item_fields_update(EO_OBJ(it),
+ NULL,
+ ELM_GENLIST_ITEM_FIELD_TEXT |
+ ELM_GENLIST_ITEM_FIELD_CONTENT);
+ }
+ else it->item->mincalcd = EINA_FALSE;
+ }
+ itb->changed = EINA_TRUE;
+ }
+
+ eina_hash_free_buckets(sd->size_caches);
+ sd->pan_changed = EINA_TRUE;
+
+ efl_ui_l10n_translation_update(efl_super(obj, MY_CLASS));
+}
+
+
static Eina_Bool _elm_genlist_smart_focus_next_enable = EINA_FALSE;
//TIZEN_ONLY(20180607): Restore legacy focus
Eina_Bool _elm_genlist_efl_ui_focus_object_on_focus_update(Eo *obj, Elm_Genlist_Data *pd);
+void _elm_genlist_efl_ui_l10n_translation_update(Eo *obj, Elm_Genlist_Data *pd);
+
+
Eina_Bool _elm_genlist_efl_ui_widget_widget_sub_object_del(Eo *obj, Elm_Genlist_Data *pd, Efl_Canvas_Object *sub_obj);
EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_genlist_efl_ui_widget_on_access_update),
EFL_OBJECT_OP_FUNC(efl_ui_widget_focus_highlight_geometry_get, _elm_genlist_efl_ui_widget_focus_highlight_geometry_get),
EFL_OBJECT_OP_FUNC(efl_ui_focus_object_on_focus_update, _elm_genlist_efl_ui_focus_object_on_focus_update),
+ EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_genlist_efl_ui_l10n_translation_update),
EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_genlist_efl_ui_widget_widget_sub_object_del),
EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_genlist_efl_ui_widget_widget_input_event_handler),
EFL_OBJECT_OP_FUNC(elm_widget_item_container_focused_item_get, _elm_genlist_elm_widget_item_container_focused_item_get),
//
#define EFL_ACCESS_WIDGET_ACTION_PROTECTED
#define ELM_WIDGET_ITEM_PROTECTED
+#define EFL_UI_L10N_PROTECTED
#define EFL_UI_FOCUS_COMPOSITION_PROTECTED
#include <Elementary.h>
elm_interface_scrollable_content_region_show(obj, r.x, r.y, r.w, r.h);
}
-#if 0
-EOLIAN static Eina_Bool
-_elm_genlist_efl_ui_widget_translate(Eo *obj, Elm_Genlist_Data *sd)
+EOLIAN static void
+_elm_genlist_efl_ui_l10n_translation_update(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
{
Item_Block *itb;
+ Eina_List *l;
+ Elm_Gen_Item *it;
// Before calling text_get, inform user first.
evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
// FIXME: We should change item's height if lang is changed??
EINA_INLIST_FOREACH(sd->blocks, itb)
{
- Eina_List *l;
- Elm_Gen_Item *it;
EINA_LIST_FOREACH(itb->items, l, it)
{
if (it->realized)
eina_hash_free_buckets(sd->size_caches);
sd->calc_done = EINA_FALSE;
- return EINA_TRUE;
+ efl_ui_l10n_translation_update(efl_super(obj, MY_CLASS));
}
-#endif
EOLIAN static void
_elm_genlist_elm_interface_scrollable_item_loop_enabled_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool enable)