stanluk pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=3e6788589e06dc8e41ba002672a5b2d171b62a4f

commit 3e6788589e06dc8e41ba002672a5b2d171b62a4f
Author: Lukasz Stanislawski <l.stanisl...@samsung.com>
Date:   Thu Jul 2 12:36:05 2015 +0200

    ctxpopup: enhance atspi state information and actions.
---
 src/lib/elc_ctxpopup.c  | 12 ++++++++++++
 src/lib/elm_ctxpopup.eo |  1 +
 2 files changed, 13 insertions(+)

diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 90b3757..d371459 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1447,6 +1447,7 @@ EOLIAN static const Elm_Atspi_Action*
 _elm_ctxpopup_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj 
EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
 {
    static Elm_Atspi_Action atspi_actions[] = {
+          { "escape", "escape", NULL, _key_action_escape},
           { "move,previous", "move", "previous", _key_action_move},
           { "move,next", "move", "next", _key_action_move},
           { "move,left", "move", "left", _key_action_move},
@@ -1458,5 +1459,16 @@ 
_elm_ctxpopup_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNU
    return &atspi_actions[0];
 }
 
+EOLIAN static Elm_Atspi_State_Set
+_elm_ctxpopup_elm_interface_atspi_accessible_state_set_get(Eo *obj, 
Elm_Ctxpopup_Data *sd EINA_UNUSED)
+{
+   Elm_Atspi_State_Set ret;
+   eo_do_super(obj, MY_CLASS, ret = 
elm_interface_atspi_accessible_state_set_get());
+
+   STATE_TYPE_SET(ret, ELM_ATSPI_STATE_MODAL);
+
+   return ret;
+}
+
 #include "elm_ctxpopup_item.eo.c"
 #include "elm_ctxpopup.eo.c"
diff --git a/src/lib/elm_ctxpopup.eo b/src/lib/elm_ctxpopup.eo
index 098150a..38d8e5d 100644
--- a/src/lib/elm_ctxpopup.eo
+++ b/src/lib/elm_ctxpopup.eo
@@ -263,6 +263,7 @@ class Elm.Ctxpopup (Elm.Layout, 
Elm_Interface_Atspi_Widget_Action)
       Elm.Layout.sub_object_add_enable;
       Elm.Layout.sizing_eval;
       Elm_Interface_Atspi_Widget_Action.elm_actions.get;
+      Elm_Interface_Atspi_Accessible.state_set.get;
    }
    events {
       dismissed;

-- 


Reply via email to