summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-14 19:25:53 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-08-14 19:25:53 +0200
commit07e810c5cc9ca622eb8f0dfc43c47846e7f09e42 (patch)
tree8ebcfbf6f6991258fe9830b726f18788fdd2b44d
parentc48903f7df2789371510536bc09e3a2f966f2249 (diff)
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.c28
-rw-r--r--src/lib/elementary/efl_ui_layout_base.eo2
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
2515 _efl_ui_layout_view_model_content_update(pd, tracking, ss_key); 2515 _efl_ui_layout_view_model_content_update(pd, tracking, ss_key);
2516} 2516}
2517 2517
2518EOLIAN void
2519_efl_ui_layout_base_efl_ui_i18n_language_set(Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED, const char *locale)
2520{
2521 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
2522 efl_ui_language_set(wd->resize_obj, locale);
2523}
2524
2525EOLIAN const char *
2526_efl_ui_layout_base_efl_ui_i18n_language_get(const Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED)
2527{
2528 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
2529 return efl_ui_language_get(wd->resize_obj);
2530}
2531
2532EOLIAN static void
2533_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)
2534{
2535 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
2536 efl_ui_l10n_text_set(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), label, domain);
2537}
2538
2539EOLIAN static const char *
2540_efl_ui_layout_base_efl_ui_l10n_l10n_text_get(const Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED, const char **domain)
2541{
2542 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
2543 return efl_ui_l10n_text_get(efl_part(obj, efl_ui_widget_default_text_part_get(obj)), domain);
2544}
2545
2518EOLIAN static Eo * 2546EOLIAN static Eo *
2519_efl_ui_layout_efl_object_constructor(Eo *obj, void *_pd EINA_UNUSED) 2547_efl_ui_layout_efl_object_constructor(Eo *obj, void *_pd EINA_UNUSED)
2520{ 2548{
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,
107 Efl.Part.part_get; 107 Efl.Part.part_get;
108 Efl.Ui.Property_Bind.property_bind; 108 Efl.Ui.Property_Bind.property_bind;
109 Efl.Ui.Factory_Bind.factory_bind; 109 Efl.Ui.Factory_Bind.factory_bind;
110 Efl.Ui.L10n.l10n_text { get; set; }
111 Efl.Ui.I18n.language { get; set; }
110 } 112 }
111 events { 113 events {
112 theme,changed: void; [[Called when theme changed]] 114 theme,changed: void; [[Called when theme changed]]