ctxpopup: enhance atspi state information and actions.

This commit is contained in:
Lukasz Stanislawski 2015-07-02 12:36:05 +02:00
parent 029a0421fa
commit 4610ccfba2
2 changed files with 13 additions and 0 deletions

View File

@ -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"

View File

@ -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;