diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2019-08-14 19:25:53 +0200 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2019-08-14 19:25:53 +0200 |
commit | 07e810c5cc9ca622eb8f0dfc43c47846e7f09e42 (patch) | |
tree | 8ebcfbf6f6991258fe9830b726f18788fdd2b44d | |
parent | c48903f7df2789371510536bc09e3a2f966f2249 (diff) | |
download | efl-07e810c5cc9ca622eb8f0dfc43c47846e7f09e42.tar.gz |
efl_ui/layout: implement unimplemented methods
Summary:
add redirects to internal layout objects for these methods
Depends on D9561
Reviewers: q66
Reviewed By: q66
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9562
-rw-r--r-- | src/lib/elementary/efl_ui_layout.c | 28 | ||||
-rw-r--r-- | src/lib/elementary/efl_ui_layout_base.eo | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_layout.c b/src/lib/elementary/efl_ui_layout.c index 8dd0879dbc..600ebdb41d 100644 --- a/src/lib/elementary/efl_ui_layout.c +++ b/src/lib/elementary/efl_ui_layout.c @@ -2515,6 +2515,34 @@ _efl_ui_layout_base_efl_ui_factory_bind_factory_bind(Eo *obj EINA_UNUSED, Efl_Ui _efl_ui_layout_view_model_content_update(pd, tracking, ss_key); } +EOLIAN void +_efl_ui_layout_base_efl_ui_i18n_language_set(Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED, const char *locale) +{ + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); + efl_ui_language_set(wd->resize_obj, locale); +} + +EOLIAN const char * +_efl_ui_layout_base_efl_ui_i18n_language_get(const Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED) +{ + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL); + return efl_ui_language_get(wd->resize_obj); +} + +EOLIAN static void +_efl_ui_layout_base_efl_ui_l10n_l10n_text_set(Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED, const char *label, const char *domain) +{ + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); + efl_ui_l10n_text_set(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), label, domain); +} + +EOLIAN static const char * +_efl_ui_layout_base_efl_ui_l10n_l10n_text_get(const Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED, const char **domain) +{ + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL); + return efl_ui_l10n_text_get(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), domain); +} + EOLIAN static Eo * _efl_ui_layout_efl_object_constructor(Eo *obj, void *_pd EINA_UNUSED) { diff --git a/src/lib/elementary/efl_ui_layout_base.eo b/src/lib/elementary/efl_ui_layout_base.eo index b66095f87b..4f4624744a 100644 --- a/src/lib/elementary/efl_ui_layout_base.eo +++ b/src/lib/elementary/efl_ui_layout_base.eo @@ -107,6 +107,8 @@ abstract Efl.Ui.Layout_Base extends Efl.Ui.Widget implements Efl.Container, Efl.Part.part_get; Efl.Ui.Property_Bind.property_bind; Efl.Ui.Factory_Bind.factory_bind; + Efl.Ui.L10n.l10n_text { get; set; } + Efl.Ui.I18n.language { get; set; } } events { theme,changed: void; [[Called when theme changed]] |