atspi: fix translation domain for naviframe item 66/156766/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 20 Oct 2017 01:12:19 +0000 (10:12 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 20 Oct 2017 01:16:49 +0000 (10:16 +0900)
The naviframe item have used its VIEW object for accessible name and
description. But the naviframe item did not care about the translation
domain. So there was a translation problem.

Change-Id: I3163f4b078a62c82686806f265487c9a3082abc9

src/lib/elc_naviframe.c
src/lib/elm_naviframe_item.eo

index 59274de..f0a2068 100644 (file)
@@ -2456,6 +2456,20 @@ _elm_naviframe_item_elm_interface_atspi_accessible_description_get(Eo *eo_item,
    eo_do(VIEW(nit), ret = elm_interface_atspi_accessible_description_get());
    return ret;
 }
+
+EOLIAN static void
+_elm_naviframe_item_elm_interface_atspi_accessible_translation_domain_set(Eo *eo_item EINA_UNUSED, Elm_Naviframe_Item_Data* nit, const char *domain)
+{
+   eo_do(VIEW(nit), elm_interface_atspi_accessible_translation_domain_set(domain));
+}
+
+EOLIAN static const char*
+_elm_naviframe_item_elm_interface_atspi_accessible_translation_domain_get(Eo *eo_item EINA_UNUSED, Elm_Naviframe_Item_Data* nit)
+{
+   const char *ret = NULL;
+   eo_do(VIEW(nit), ret = elm_interface_atspi_accessible_translation_domain_get());
+   return ret;
+}
 //
 
 #include "elm_naviframe_item.eo.c"
index d1c4dec..b37c6b6 100644 (file)
@@ -116,6 +116,8 @@ class Elm.Naviframe_Item(Elm.Widget_Item)
         Elm_Interface_Atspi_Accessible.name.set;
         Elm_Interface_Atspi_Accessible.description.set;
         Elm_Interface_Atspi_Accessible.description.get;
+        Elm_Interface_Atspi_Accessible.translation_domain.set;
+        Elm_Interface_Atspi_Accessible.translation_domain.get;
         //
    }
 }