aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-05-13 15:37:47 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-05-13 15:39:24 +0200
commit927d78d095cf800a8ad63d248850a587b77bbe1f (patch)
tree7413fa404ff8e0c4ba900f7ff1dc6bf8719464d8 /legacy/elementary/src/lib/elm_win.c
parentatspi: set FOCUSABLE state only when widget has no focusable children (diff)
downloadefl-927d78d095cf800a8ad63d248850a587b77bbe1f.tar.gz
atspi: add ACTIVE state to elm_win
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 556030ed55..c2437355e5 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1044,7 +1044,10 @@ _elm_win_focus_in(Ecore_Evas *ee)
}
if (_elm_config->atspi_mode)
- eo_do(obj, eo_event_callback_call(ELM_INTERFACE_ATSPI_WINDOW_EVENT_WINDOW_ACTIVATED, NULL));
+ {
+ eo_do(obj, eo_event_callback_call(ELM_INTERFACE_ATSPI_WINDOW_EVENT_WINDOW_ACTIVATED, NULL));
+ elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_ACTIVE, EINA_TRUE);
+ }
/* do nothing */
/* else if (sd->img_obj) */
@@ -1076,7 +1079,10 @@ _elm_win_focus_out(Ecore_Evas *ee)
_elm_access_object_highlight_disable(evas_object_evas_get(obj));
if (_elm_config->atspi_mode)
- eo_do(obj, eo_event_callback_call(ELM_INTERFACE_ATSPI_WINDOW_EVENT_WINDOW_DEACTIVATED, NULL));
+ {
+ eo_do(obj, eo_event_callback_call(ELM_INTERFACE_ATSPI_WINDOW_EVENT_WINDOW_DEACTIVATED, NULL));
+ elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_ACTIVE, EINA_FALSE);
+ }
/* do nothing */
/* if (sd->img_obj) */
@@ -5417,4 +5423,16 @@ _elm_win_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED,
return &atspi_actions[0];
}
+EOLIAN static Elm_Atspi_State_Set
+_elm_win_elm_interface_atspi_accessible_state_set_get(Eo *obj, Elm_Win_Data *sd EINA_UNUSED)
+{
+ Elm_Atspi_State_Set ret;
+ eo_do_super(obj, MY_CLASS, ret = elm_interface_atspi_accessible_state_set_get());
+
+ if (elm_win_focus_get(obj))
+ STATE_TYPE_SET(ret, ELM_ATSPI_STATE_ACTIVE);
+
+ return ret;
+}
+
#include "elm_win.eo.c"