[Atspi][Popup]: default label feature added. 50/84450/2
authorShilpa Singh <shilpa.singh@samsung.com>
Thu, 18 Aug 2016 13:39:07 +0000 (19:09 +0530)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 1 Sep 2016 06:02:59 +0000 (23:02 -0700)
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
Change-Id: Ibf26c7a8fa469b5beb1d31f6f0c81a7c3c77c0a0

src/lib/elc_popup.c
src/lib/elm_popup.eo

index 2c4cc1d..d4170ec 100644 (file)
@@ -1125,7 +1125,7 @@ _access_info_cb(void *data, Evas_Object *obj EINA_UNUSED)
    if (priv->title_text)
      {
         buf = eina_strbuf_new();
-        eina_strbuf_append_printf(buf, "%s, %s, %s", N_("Alert"), priv->title_text, N_("Title"));
+        eina_strbuf_append_printf(buf, "%s, %s", priv->title_text, N_("Title"));
         ret = eina_strbuf_string_steal(buf);
         eina_strbuf_free(buf);
         return strdup(ret);
@@ -2181,6 +2181,24 @@ _elm_popup_class_constructor(Eo_Class *klass)
    evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
 }
 
+//TIZEN ONLY(20160818): name interface added
+EOLIAN static char*
+_elm_popup_elm_interface_atspi_accessible_name_get(Eo *obj EINA_UNUSED, Elm_Popup_Data *sd)
+{
+   Eina_Strbuf *buf;
+   char *ret = NULL;
+   buf = eina_strbuf_new();
+   eina_strbuf_append_printf(buf, "%s", N_("Alert"));
+   if (sd->title_text)
+     eina_strbuf_append_printf(buf, ", %s", sd->title_text);
+   else if (sd->text_content_obj)
+     eina_strbuf_append_printf(buf, ", %s", elm_object_text_get(sd->text_content_obj));
+   ret = eina_strbuf_string_steal(buf);
+   eina_strbuf_free(buf);
+   return strdup(ret);
+}
+//
+
 EOLIAN const Elm_Atspi_Action *
 _elm_popup_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Popup_Data *pd EINA_UNUSED)
 {
index cae8aee..d28c1d7 100644 (file)
@@ -187,6 +187,9 @@ class Elm.Popup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
       Elm.Layout.signal_emit;
       Elm_Interface_Atspi_Widget_Action.elm_actions.get;
       Elm_Interface_Atspi_Accessible.state_set.get;
+      //TIZEN ONLY(20160818): name interface added
+      Elm_Interface_Atspi_Accessible.name.get;
+      //
       Elm_Interface_Atspi_Component.highlight_grab;
       Elm_Interface_Atspi_Component.highlight_clear;
    }