summaryrefslogtreecommitdiff
path: root/src/lib/elm_diskselector.c
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-25 10:33:19 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-25 11:58:16 +0200
commit4dcb2df11c1bb99e310f43e2951bdfb87e43f057 (patch)
tree25b468eb70e694f2e1cdde8b36e8aaefb49b369a /src/lib/elm_diskselector.c
parent06cd087da13b7703725b65074b556e435dbf28c9 (diff)
atspi: expose more actions through atspi bus.
Summary: Main purpose of exposing widget actions and keyboard shortcuts is to allow accessibility clients to implement alternative methods of GUI navigation. Reviewers: z.kosinski Reviewed By: z.kosinski Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D1227
Diffstat (limited to '')
-rw-r--r--src/lib/elm_diskselector.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 44a56df6c..1021d8438 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -11,6 +11,10 @@
11#include "elm_interface_atspi_accessible.h" 11#include "elm_interface_atspi_accessible.h"
12#include "elm_interface_atspi_accessible.eo.h" 12#include "elm_interface_atspi_accessible.eo.h"
13 13
14#define ELM_INTERFACE_ATSPI_WIDGET_ACTION_PROTECTED
15#include "elm_interface_atspi_widget_action.h"
16#include "elm_interface_atspi_widget_action.eo.h"
17
14#define DISPLAY_ITEM_NUM_MIN 3 18#define DISPLAY_ITEM_NUM_MIN 3
15 19
16#define MY_CLASS ELM_DISKSELECTOR_CLASS 20#define MY_CLASS ELM_DISKSELECTOR_CLASS
@@ -1787,4 +1791,17 @@ _elm_diskselector_class_constructor(Eo_Class *klass)
1787 _elm_diskselector_smart_focus_next_enable = EINA_TRUE; 1791 _elm_diskselector_smart_focus_next_enable = EINA_TRUE;
1788} 1792}
1789 1793
1794EOLIAN static const Elm_Atspi_Action*
1795_elm_diskselector_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Diskselector_Data *sd EINA_UNUSED)
1796{
1797 static Elm_Atspi_Action atspi_actions[] = {
1798 { "move,previous", "move", "prev", _key_action_move},
1799 { "move,next", "move", "next", _key_action_move},
1800 { "move,first", "move", "first", _key_action_move},
1801 { "move,last", "move", "last", _key_action_move},
1802 { NULL, NULL, NULL, NULL }
1803 };
1804 return &atspi_actions[0];
1805}
1806
1790#include "elm_diskselector.eo.c" 1807#include "elm_diskselector.eo.c"