static Eina_Bool
_elm_ctxpopup_smart_translate(Evas_Object *obj)
{
+ ELM_CTXPOPUP_DATA_GET(obj, sd);
+ Elm_Ctxpopup_Item *it;
+ Eina_List *l;
+
evas_object_hide(obj);
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
return EINA_TRUE;
}
ELM_WIDGET_CLASS(sc)->disable = _elm_ctxpopup_smart_disable;
ELM_WIDGET_CLASS(sc)->event = _elm_ctxpopup_smart_event;
ELM_WIDGET_CLASS(sc)->theme = _elm_ctxpopup_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_ctxpopup_smart_translate;
ELM_WIDGET_CLASS(sc)->sub_object_add = _elm_ctxpopup_smart_sub_object_add;
ELM_WIDGET_CLASS(sc)->focus_next = _elm_ctxpopup_smart_focus_next;
ELM_WIDGET_CLASS(sc)->focus_direction = _elm_ctxpopup_smart_focus_direction;
Elm_Button_Smart_Class, elm_button_smart_class_get, _smart_callbacks);
static Eina_Bool
+_elm_hoversel_smart_translate(Evas_Object *obj)
+{
+ ELM_HOVERSEL_DATA_GET(obj, sd);
+ Elm_Hoversel_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
+static Eina_Bool
_elm_hoversel_smart_theme(Evas_Object *obj)
{
char buf[4096];
ELM_WIDGET_CLASS(sc)->parent_set = _elm_hoversel_smart_parent_set;
ELM_WIDGET_CLASS(sc)->theme = _elm_hoversel_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_hoversel_smart_translate;
ELM_BUTTON_CLASS(sc)->admits_autorepeat = EINA_FALSE;
}
elm_layout_smart_class_get, _smart_callbacks);
static Eina_Bool
+_elm_multibuttonentry_smart_translate(Evas_Object *obj)
+{
+ ELM_MULTIBUTTONENTRY_DATA_GET(obj, sd);
+ Elm_Multibuttonentry_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
+static Eina_Bool
_elm_multibuttonentry_smart_focus_next(const Evas_Object *obj,
Elm_Focus_Direction dir,
Evas_Object **next)
ELM_WIDGET_CLASS(sc)->base.del = _elm_multibuttonentry_smart_del;
ELM_WIDGET_CLASS(sc)->theme = _elm_multibuttonentry_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_multibuttonentry_smart_translate;
ELM_WIDGET_CLASS(sc)->on_focus = _elm_multibuttonentry_smart_on_focus;
/* not a 'focus chain manager' */
static void _on_item_back_btn_clicked(void *data, Evas_Object *obj, void *event_info __UNUSED__);
+static Eina_Bool
+_elm_naviframe_smart_translate(Evas_Object *obj)
+{
+ ELM_NAVIFRAME_DATA_GET(obj, sd);
+ Elm_Naviframe_Item *it;
+
+ EINA_INLIST_FOREACH(sd->stack, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
static void
_item_content_del_cb(void *data,
Evas *e __UNUSED__,
ELM_WIDGET_CLASS(sc)->base.del = _elm_naviframe_smart_del;
ELM_WIDGET_CLASS(sc)->theme = _elm_naviframe_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_naviframe_smart_translate;
ELM_WIDGET_CLASS(sc)->focus_next = _elm_naviframe_smart_focus_next;
ELM_WIDGET_CLASS(sc)->focus_direction = _elm_naviframe_smart_focus_direction;
ELM_WIDGET_CLASS(sc)->access = _elm_naviframe_smart_access;
static void _on_content_del(void *data, Evas *e, Evas_Object *obj, void *event_info);
+static Eina_Bool
+_elm_popup_smart_translate(Evas_Object *obj)
+{
+ ELM_POPUP_DATA_GET(obj, sd);
+ Elm_Popup_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
static void
_visuals_set(Evas_Object *obj)
{
ELM_WIDGET_CLASS(sc)->parent_set = _elm_popup_smart_parent_set;
ELM_WIDGET_CLASS(sc)->event = _elm_popup_smart_event;
ELM_WIDGET_CLASS(sc)->theme = _elm_popup_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_popup_smart_translate;
ELM_WIDGET_CLASS(sc)->focus_next = _elm_popup_smart_focus_next;
ELM_WIDGET_CLASS(sc)->access = _elm_popup_smart_access;
ELM_WIDGET_CLASS(sc)->focus_direction = _elm_popup_smart_focus_direction;
Elm_Diskselector_Smart_Class, Elm_Widget_Smart_Class,
elm_widget_smart_class_get, _smart_callbacks, _smart_interfaces);
+static Eina_Bool
+_elm_diskselector_smart_translate(Evas_Object *obj)
+{
+ ELM_DISKSELECTOR_DATA_GET(obj, sd);
+ Elm_Diskselector_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
static void
_selected_item_indicate(Elm_Diskselector_Item *it)
{
_elm_diskselector_smart_sub_object_del;
ELM_WIDGET_CLASS(sc)->on_focus = _elm_diskselector_smart_on_focus;
ELM_WIDGET_CLASS(sc)->theme = _elm_diskselector_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_diskselector_smart_translate;
ELM_WIDGET_CLASS(sc)->event = _elm_diskselector_smart_event;
/* access */
static Eina_Bool
_elm_list_smart_translate(Evas_Object *obj)
{
+ ELM_LIST_DATA_GET(obj, sd);
+ Elm_List_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
return EINA_TRUE;
(ELM_MENU_SMART_NAME, _elm_menu, Elm_Menu_Smart_Class,
Elm_Widget_Smart_Class, elm_widget_smart_class_get, _smart_callbacks);
+static Eina_Bool
+_elm_menu_smart_translate(Evas_Object *obj)
+{
+ ELM_MENU_DATA_GET(obj, sd);
+ Elm_Menu_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
static void
_item_del(Elm_Menu_Item *item)
{
ELM_WIDGET_CLASS(sc)->parent_set = _elm_menu_smart_parent_set;
ELM_WIDGET_CLASS(sc)->theme = _elm_menu_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_menu_smart_translate;
}
EAPI const Elm_Menu_Smart_Class *
Elm_Segment_Control_Smart_Class, Elm_Layout_Smart_Class,
elm_layout_smart_class_get, _smart_callbacks);
+static Eina_Bool
+_elm_segment_control_smart_translate(Evas_Object *obj)
+{
+ ELM_SEGMENT_CONTROL_DATA_GET(obj, sd);
+ Elm_Segment_Item *it;
+ Eina_List *l;
+
+ EINA_LIST_FOREACH(sd->items, l, it)
+ elm_widget_item_translate(it);
+
+ return EINA_TRUE;
+}
+
+
static void
_elm_segment_control_smart_sizing_eval(Evas_Object *obj)
{
ELM_WIDGET_CLASS(sc)->base.del = _elm_segment_control_smart_del;
ELM_WIDGET_CLASS(sc)->theme = _elm_segment_control_smart_theme;
+ ELM_WIDGET_CLASS(sc)->translate = _elm_segment_control_smart_translate;
ELM_WIDGET_CLASS(sc)->disable = _elm_segment_control_smart_disable;
#if 0
static Eina_Bool
_elm_toolbar_smart_translate(Evas_Object *obj)
{
+ ELM_TOOLBAR_DATA_GET(obj, sd);
+ Elm_Toolbar_Item *it;
+
+ EINA_INLIST_FOREACH(sd->items, it)
+ elm_widget_item_translate(it);
+
evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
return EINA_TRUE;