efl_ui/layout: implement unimplemented methods
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 14 Aug 2019 17:25:53 +0000 (19:25 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 21 Aug 2019 00:26:53 +0000 (09:26 +0900)
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

src/lib/elementary/efl_ui_layout.c
src/lib/elementary/efl_ui_layout_base.eo

index ed044c8..4a23f41 100644 (file)
@@ -2718,14 +2718,33 @@ _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);
+}
 
-//TIZEN_ONLY(20170621) handle atspi proxy connection at runtime
-static void
-_widget_created_cb(void *data EINA_UNUSED, Evas_Object *obj, void *ev EINA_UNUSED)
+EOLIAN const char *
+_efl_ui_layout_base_efl_ui_i18n_language_get(const Eo *obj, Efl_Ui_Layout_Data *sd EINA_UNUSED)
 {
-   elm_widget_atspi_plug_type_proxy_get(obj);
+   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)
@@ -2739,6 +2758,14 @@ _efl_ui_layout_efl_object_constructor(Eo *obj, void *_pd EINA_UNUSED)
    return obj;
 }
 
+//TIZEN_ONLY(20170621) handle atspi proxy connection at runtime
+static void
+_widget_created_cb(void *data EINA_UNUSED, Evas_Object *obj, void *ev EINA_UNUSED)
+{
+   elm_widget_atspi_plug_type_proxy_get(obj);
+}
+//
+
 EOLIAN static Eo *
 _efl_ui_layout_base_efl_object_constructor(Eo *obj, Efl_Ui_Layout_Data *sd)
 {
index ca77de6..61c5fca 100644 (file)
@@ -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; }
 
       //TIZEN_ONLY(20161212): apply screen_reader_changed callback
       // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property