From e5a1d8b1b8cf6ad8e435e9a205d2c043269d6897 Mon Sep 17 00:00:00 2001 From: Shilpa Singh Date: Thu, 18 Aug 2016 19:09:07 +0530 Subject: [PATCH] [Atspi][Popup]: default label feature added. Signed-off-by: Shilpa Singh Change-Id: Ibf26c7a8fa469b5beb1d31f6f0c81a7c3c77c0a0 --- src/lib/elc_popup.c | 20 +++++++++++++++++++- src/lib/elm_popup.eo | 3 +++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c index 2c4cc1d..d4170ec 100644 --- a/src/lib/elc_popup.c +++ b/src/lib/elc_popup.c @@ -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) { diff --git a/src/lib/elm_popup.eo b/src/lib/elm_popup.eo index cae8aee..d28c1d7 100644 --- a/src/lib/elm_popup.eo +++ b/src/lib/elm_popup.eo @@ -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; } -- 2.7.4